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这个链接