Created
November 6, 2020 11:57
-
-
Save movd/b996023cd3b122fe91b53a716d3ce817 to your computer and use it in GitHub Desktop.
Hot reload Prometheus only on working config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ls /etc/prometheus/*.yml \ | |
| entr bash -c "promtool check config /etc/prometheus/prometheus.yml \ | |
&& curl -X POST 'http://localhost:9090/-/reload'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment