Be sure to secure Prometheus, unauthenticated by default
- Pre-deployment configuration
- Prometheus
- Edit ./prometheus/prometheus.yml with your
Path to Console
and youraccess/secret
key
- Edit ./prometheus/prometheus.yml with your
- Grafana
- (Optional) Append new data sources in /grafana/provisioning/datasources/all_sources.yml
- (Optional) Add new
.json
files of dashboards in ./grafana/dashboards
- Prometheus
- Deployment
- Run
docker-compose up -d
- Verify both Prometheus and Grafana containers are started successfully and reachable
- If running locally, should be http://localhost:9090/ for Prometheus, and http://localhost:3000/ for Grafana
- Run
- Verify
- You should now see dashboards like below!
- First check the Prometheus
Targets
page, and see if any status errors are thereError Info 502 The metrics
endpoint set on the Path to Console in prometheus.yml is likely incorrect401 The access/secret
key either doesn't have permissions or is incorrect
- Can't see dashboards: Check under "Dashboards > Browse" and expand the 2 folders:
- No data in dashboards: Go to "Configuration > Data Sources > Prometheus", scroll to the bottom and click "Save & test"
This project is licensed under the MIT License - see the LICENSE file for details