Skip to content

Commit

Permalink
Add cost dashboard (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
nydr authored May 17, 2024
1 parent 958ef61 commit 02968ce
Show file tree
Hide file tree
Showing 4 changed files with 1,212 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/observability/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://avatars.githubusercontent.com/u/474424?s=200&v=4

type: application

version: 0.1.4
version: 0.1.5

appVersion: ""
dependencies:
Expand Down
24 changes: 24 additions & 0 deletions charts/observability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,27 @@
└─────────┘
```

## Components

### [OpenCost](https://www.opencost.io/)
Exports cost metrics to Prometheus for analyzing Kubernetes resource costs and efficiencies
### [Vector](https://vector.dev/)
Collects, transforms, and routes observability data (logs and metrics)
### [Prometheus](https://prometheus.io/docs/introduction/overview/)
Monitors targets by scraping metrics
### [node-exporter](https://github.com/prometheus/node_exporter)
Provides system-level metrics to Prometheus for monitoring hardware and OS details.
Metrics are forwarded to prometheus through vector instead of crawled directly since the EKS CNI in use does not support direct connections to DaemonSets without hostNetwork
### [Grafana](https://grafana.com/)
Visualizes data from various sources, including Prometheus and Loki, for dashboards and logs
### [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics)
Listens to the Kubernetes API server and generates metrics about the state of the objects

## Grafana
### Adding new dashboards
There's two different ways to add a dashboard
#### _Option 1:_ Package with observability helm-chart
Export the json and add it in `dashboards/{medic,thirdparty}`
#### _Option 2:_ Package with application helm-chart
Add the dashboard as a configmap and set label `grafana_dashboard=medic-observability`
Loading

0 comments on commit 02968ce

Please sign in to comment.