mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
Monitoring solution
Leverages Prometheus and Grafana.
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.