A docker compose file to run Prometheus, Grafana and exporters locally.
Step 0: Clone this repo
Step 1:
cd
to the prom-grafana-dockercompose
folder and use the command docker compose up
to run the containers
Step 2: Go to localhost:9090 and check if Prometheus is scraping the targets correctly
Step 3: Go to localhost:3030 and login into Grafana
user: admin
pw: secret
Step 4: Add Prometheus as Grafana's datasource using http://host.docker.internal:9090 as the URL.