Prometheus热重启

Prometheus热重启


启动prometheus时 添加参数 --web.enable-lifecycle

nohup ./prometheus --web.enable-lifecycle &

然后热重启:

dos下执行如下命令

curl -XPOST http://ip:9090/-/reload  #  ip是部署prometheus服务的ip地址

或者
使用postman或Apifox以post请求 请求http://ip:9090/-/reload这个链接

你可能感兴趣的:(其他(运维...),服务器)