prometheus: docs for linting the config yml file

This commit is contained in:
teutat3s 2022-07-11 16:27:13 +02:00
parent c682a97746
commit 4564d1afe4
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -3,6 +3,11 @@
**Note:** Opted for pulling the prometheus docker image from Docker Hub,
because nixpkgs lagged behind a few releases at the time of this writing.
### Linting the prometheus.yml after changing it
```
nix-shell -p prometheus --run 'promtool check config ./src/etc/prometheus/prometheus.yml'
```
### Updating our custom image to a new prometheus version
Update `default.nix` with new image tag, once a new prometheus version got
released, you can check the [tags on DockerHub](https://hub.docker.com/r/prom/prometheus/tags)