Prometheus提供兩種重新加載配置文件prometheus.yml的方法:
# 第一種,向prometheus進行發信號
kill -HUP pid
# 第二種,向prometheus發送HTTP請求
# /-/reload只接收POST請求,並且需要在啓動prometheus進程時,指定 --web.enable-lifecycle
curl -XPOST http://prometheus.chenlei.com/-/reload
# 第一種,向prometheus進行發信號
kill -HUP pid
# 第二種,向prometheus發送HTTP請求
# /-/reload只接收POST請求,並且需要在啓動prometheus進程時,指定 --web.enable-lifecycle
curl -XPOST http://prometheus.chenlei.com/-/reload