This is a basic template (that I use) for monitoring things.
In this package:
- Grafana
- Prometheus
- Blackbox Exporter for Prometheus
- Image Renderer for Grafana (not active by default)
- Persistent data for both Grafana and Prometheus
- Docker
restart: unless-stopped
policy.
You'll have to fine-tune the installation before it went to production. Things such as user and persistent storage stuff that need to be taken care of before spinning up the server are quite.... important.
So in a nutshell here's what you need to do:
-
Create data folder for storage:
$ mkdir .data
-
Change the settings & run user on the
docker-compose.yml
file. -
chown && chmod, if you need.
$ chown -R 1001:1001 .data
-
Then you can
docker-compose up
the nuclear facility. -
After that, you can log in to the grafana:
- URL: http://localhost
- Username:
monitoring
(UNLESS you changed the setting ondocker-compose.yml
!) - Password:
securePassword
(UNLESS you changed the setting ondocker-compose.yml
!)