You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Grafana docker image: grafana/grafana-oss:8.3.4

Prometheus docker image: prom/prometheus:v2.32.1

Node exporter docker image: prom/node-exporter:v1.3.1


Run node exporter and prometheus

docker run -d -p 9100:9100 prom/node-exporter:v1.3.1

docker run -d -p 9090:9090 --network=host -v /home/adheli/prom.yml:/etc/prometheus/prometheus.yml prom/prometheus:v2.32.1


Run grafana

docker run -d   -p 3000:3000   --name=grafana   -e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource"   grafana/grafana-oss:8.3.4


URLS: 

API - http://172.18.0.7:6969/


Start the docker composer for the applications. Get IPs

Start node exporter, then Prometheus with the jobs to be scrapped on a prometheus.yml file configuration. IPs can be mapped with --add-host option when running docker container.

Navigate to localhost:9090 to check if targets are up and running.


Navigate to localhost:3000 to open grafana. On configurations, add a new data source. Use Prometheus. Inform the localhost:9090 and change to Browser support instead of server.

Save and test to check if Grafana can connect to Prometheus.

  • No labels