prometheus
检查prometheus配置文件是否正确;
进入prometheus所在目录执行
./promtool check config prometheus.yml
热更新prometheus配置文件:
curl -X POST http://localhost:9090/-/reload
启动:
./prometheus --config.file=prometheus.yml
alarmManager
启动、停止、状态查询
systemctl start/stop/status alertmanager

本文介绍了如何检查Prometheus配置,使用`promtoolcheckconfig`验证,通过`curl`热更新配置并重启服务,以及AlarmManager的启动、停止和状态查询方法。

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



