Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giantswarm/prometheus
Kubernetes Setup for Prometheus and Grafana
https://github.com/giantswarm/prometheus
dashboard grafana helm-chart kubernetes metrics monitoring prometheus
Last synced: 13 days ago
JSON representation
Kubernetes Setup for Prometheus and Grafana
- Host: GitHub
- URL: https://github.com/giantswarm/prometheus
- Owner: giantswarm
- License: apache-2.0
- Archived: true
- Created: 2016-07-06T07:53:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-06T16:08:43.000Z (about 3 years ago)
- Last Synced: 2024-09-27T15:40:59.694Z (4 months ago)
- Topics: dashboard, grafana, helm-chart, kubernetes, metrics, monitoring, prometheus
- Language: Mustache
- Homepage:
- Size: 2.98 MB
- Stars: 858
- Watchers: 51
- Forks: 424
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/giantswarm/prometheus.svg?style=svg)](https://circleci.com/gh/giantswarm/prometheus)
# Kubernetes Setup for Prometheus and Grafana## Quick start
To quickly start all the things just do this:
```bash
kubectl apply \
--filename https://raw.githubusercontent.com/giantswarm/prometheus/master/manifests-all.yaml
```This will create the namespace `monitoring` and bring up all components in there.
To shut down all components again you can just delete that namespace:
```bash
kubectl delete namespace monitoring
```## Default Dashboards
If you want to re-import the default dashboards from this setup run this job:
```bash
kubectl apply --filename ./manifests/grafana/import-dashboards/job.yaml
```In case the job already exists from an earlier run, delete it before:
```bash
kubectl --namespace monitoring delete job grafana-import-dashboards
```To access grafana you can use port forward functionality
```bash
kubectl port-forward --namespace monitoring service/grafana 3000:3000
```
And you should be able to access grafana on `http://localhost:3000/login`## More Dashboards
See grafana.net for some example [dashboards](https://grafana.net/dashboards) and [plugins](https://grafana.net/plugins).
- Configure [Prometheus](https://grafana.net/plugins/prometheus) data source for Grafana.
`Grafana UI / Data Sources / Add data source`
- `Name`: `prometheus`
- `Type`: `Prometheus`
- `Url`: `http://prometheus:9090`
- `Add`- Import [Prometheus Stats](https://grafana.net/dashboards/2):
`Grafana UI / Dashboards / Import`
- `Grafana.net Dashboard`: `https://grafana.net/dashboards/2`
- `Load`
- `Prometheus`: `prometheus`
- `Save & Open`- Import [Kubernetes cluster monitoring](https://grafana.net/dashboards/162):
`Grafana UI / Dashboards / Import`
- `Grafana.net Dashboard`: `https://grafana.net/dashboards/162`
- `Load`
- `Prometheus`: `prometheus`
- `Save & Open`## Credit
Alertmanager configs and integration in this repository was heavily inspired by the implementation in [kayrus/prometheus-kubernetes](https://github.com/kayrus/prometheus-kubernetes).