#方式1: kill -HUP ${prometheus_pid} docker kill -s HUP <容器ID> #方式2: # 需要 --web.enable-lifecycle 參數為true curl -X POST http://10.0.209.140:9090/-/reload
安裝 promtool
go get github.com/prometheus/prometheus/cmd/promtool promtool check rules /path/to/example.rules.yml
promtool check config /etc/prometheus/prometheus.yml