Connect Grafana to Prometheus
Grafana has zero datasources configured. Provision a Prometheus datasource via YAML so real queries work.
A intermediate Prometheus & Grafana challenge worth 10 points. Solve it hands-on in a real Prometheus & Grafana environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Grafana is up and Prometheus has real data, but Grafana has no idea Prometheus exists - there isn't a single datasource configured, provisioned or otherwise.
Your tasks:
- Find Grafana's datasource provisioning directory.
- Write a datasource provisioning YAML file declaring a Prometheus datasource pointed at the real running Prometheus server.
- Restart Grafana and confirm the datasource can actually query live metrics (not just that it appears in the list).
Commands to learn: Grafana provisioning YAML (apiVersion, datasources, access: proxy), curl against Grafana's API.
Run check when done.