This repo contains a container stack (works with docker/podman compose) which sets up grafana and prometheus to monitor an Augur instance. This helps provide a more time-series look at various augur parameters and statistics for long-term health monitoring by the system admin.
This includes:
- monitoring the augur postgres database (requires a user with access)
- monitoring celery tasks through flower (requires the flower interface to be up)
- clone the repo
- create a .env file containing your Augur DB credentials and preferred grafana login. A template is available in
.env.sample - (optional) for host metrics on debian systems, install the package
prometheus-node-exporter - do
podman compose up -dordocker compose up -dfrom the root of the repo to start the monitoring stack- if you have a .env file with a different name than
.env, you'll probably want to include--env-file=<your env file>in the command.
- if you have a .env file with a different name than
- start up the augur stack
- navigate to http://localhost:3000 in your browser
- login with the credentials admin/password
- navigate to Dashboards in the Web UI and select a dashboard
Grafana in particular takes a hot sec to start up (probably about a minute) before its accessible via the web interface (it has db migrations to do apparrently - the logs for this should be hidden by the instruction to only show error logs)
Data is not currently preserved between restarts of the monitoring stack.
This is intended and designed to run independently of augur (by relying on the ports that the augur docker stack exposes). This makes it possible to take augur down and back up without affecting the monitoring stack other than creating a gap in the graphs where no data could be collected.
