https://github.com/satyamsundaram/prometheus_demo
We deploy node-exporter and kube-state-metrics to our GKE k8s cluster and use an external prometheus to scrape those metrics and display them using Grafana dashboards. We also setup alerts in Prometheus.
https://github.com/satyamsundaram/prometheus_demo
Last synced: 21 days ago
JSON representation
We deploy node-exporter and kube-state-metrics to our GKE k8s cluster and use an external prometheus to scrape those metrics and display them using Grafana dashboards. We also setup alerts in Prometheus.
- Host: GitHub
- URL: https://github.com/satyamsundaram/prometheus_demo
- Owner: satyamsundaram
- Created: 2023-08-31T18:21:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T19:26:36.000Z (almost 2 years ago)
- Last Synced: 2025-06-06T18:52:09.589Z (about 1 month ago)
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Steps
1. start a k8s cluster in GKE
2. setup gcloud and kubectl locally to interact with the cluster
3. create namespace 'monitoring' in k8s for our current setup
4. deploy node-exporter in k8s cluster as a daemonset
5. create service account for kube-state-metrics as a deployment to collect cluster-level metrics
6. deploy prometheus and grafana locally using docker-compose
7. add node-exporter and kube-state-metrics as targets in prometheus using their external IPs
8. add prometheus as a datasource in grafana
9. import necessary dashboards in grafana
10. create an alert in prometheus for a cronjob not scheduling within a minute