Files
oam/docker compositions/monitoring/README.md
2025-04-20 14:12:01 +02:00

1.7 KiB

Monitoring solution

Leverages Prometheus and Grafana.

  1. Pre-flight operations
  2. Runtime operations
  3. Further readings

Pre-flight operations

For example purposes, the host running them will also run the Node Exporter to provide data.
Since the Node Exporter container runs in host mode, the host's IP or FQDN must be set in Prometheus' configuration file for this to work.

The configuration provided needs to be readable from the processes using it.
Fix files' permissions:

# From the containers.
docker compose run --rm --user 'root' --entrypoint chown 'grafana' -Rv 'grafana' '/etc/grafana' '/var/lib/grafana'
docker compose run --rm --user 'root' --entrypoint chown 'prometheus' -Rv 'nobody:nobody' '/etc/prometheus'

# Locally.
sudo chown -R '472:0' 'grafana'
sudo chown -R '65534:65534' 'prometheus'

Runtime operations

Default credentials for Grafana: admin - admin.
Will be requested to change them upon first login.

Further readings