From 4564d1afe4e91d23da73bdb952c54f3d73bd376b Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 11 Jul 2022 16:27:13 +0200 Subject: [PATCH] prometheus: docs for linting the config yml file --- monitoring/prometheus/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monitoring/prometheus/README.md b/monitoring/prometheus/README.md index fc46228..9649d28 100644 --- a/monitoring/prometheus/README.md +++ b/monitoring/prometheus/README.md @@ -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)