prometheus: docs for linting the config yml file

pull/4/head
teutat3s 2022-07-11 16:27:13 +02:00
parent c682a97746
commit 4564d1afe4
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 5 additions and 0 deletions

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)