

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Metrics
incomplete
2: Prometheus
incomplete
3: System Metrics
incomplete
4: Metrics Exporters
incomplete
5: What to Measure
incomplete
6: Visualizing Metrics
incomplete
7: Service Metrics
incomplete
8: Custom Metrics
incomplete
9: Custom Visualizations
incomplete
10: Status Code Bars
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Now let's install and configure Grafana. This is where metrics become fun, at least for those of us who like pretty, colorful charts and graphs.
Install Grafana and connect it to Prometheus.
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana_data:/var/lib/grafana
volumes:
grafana_data:
Persist Grafana state with a named volume (grafana_data) so your data source and dashboards survive restarts. In production, back this storage with durable infrastructure and avoid wiping it with commands like docker compose down -v.
docker compose up
Out of the box, Grafana is an empty (and potentially confusing) interface. We'll fix that quickly by adding a useful dashboard to monitor your operating system.
http://prometheus:90901860 and click LoadHost System MetricsRun and submit the CLI tests from the root of the Linko repo.