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这个链接
本文详细介绍了如何在Prometheus中启用生命周期管理,通过curl或Postman发送POST请求来实现热重启,适合运维人员快速掌握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这个链接
2687
1856
1898
2894
526

被折叠的 条评论
为什么被折叠?