Jakub’s Projects
Grafana + Prometheus Docker Compose

Grafana + Prometheus Docker Compose

This project provides a ready-to-use monitoring stack with Prometheus and Grafana running in Docker Compose. It comes preconfigured with cAdvisor (for Docker container metrics) and Node Exporter (for system health), so you can start collecting and visualizing metrics right away. Prometheus scrapes exporters based on a local configuration file, and you can extend it easily by adding new jobs. Grafana connects to Prometheus out of the box, letting you import pre-built dashboards from the community and explore metrics in real time. External Prometheus port is mapped to 9091 to avoid conflicts with existing services.


Created: 2025-09-25 Updated: 2025-09-25

Installation & Usage

Grafana-Prometheus-Compose

General Info

This configuration assumes that initial prometheus config is in the local /etc/prometheus/prometheus.yaml path.

Initial setup

Initial setup has pre-configured exporters for cadvisor (for gathering docker image's information) and node_exporter for monitoring system health

How to add new exporters

In order to add new exporters, the prometeus config has to be extended with the new job names.

Grafana

Many pre-built dashboards can be found for free on the official Grafana webpage

Caveats

External port for prometheus was changed to 9091 to avoid conflicts.