Grafana setup with docker-compose.

Full monitoring stack — part 2.

Mirco | VerboseMode.dev
Javarevisited

--

Grafana dashboard showing HTTP requests per minute.
Grafana dashboard showing HTTP requests per minute.

Please read the updated version here:

In short: what is Grafana?

Grafana is a tool to create rich dashboards from your metrics.
Grafana can ingest from many different data sources, including Prometheus.

Configuration

Grafana can work without any configuration files. However, we want to configure Prometheus as a data source, so we create grafana/provisioning/datasources/prometheus_ds.yml.

grafana/provisioning/datasources/prometheus_ds.yml

This configuration file will tell Grafana about Prometheus. You could omit this and add the configuration via the Grafana UI.

Add the following to grafana/provisioning/datasources/prometheus_ds.yml:

--

--