修改prometheus配置文件
[root@iZ2ze4v2sdd3v6w7w8doecZ ~]# vim /home/prometheus/prometheus.yml # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - 10.10.0.217:9093 #填写安装alertmanager的IP rule_files: - "first_rules.yml" #打开自定义配置文件
检查有没有错误
[root@iZ2ze4v2sdd3v6w7w8doecZ prometheus]# ./promtool check config prometheus.yml Checking prometheus.yml FAILED: "rules.yml" does not point to an existing file
提示没有这个告警规则文件,添加告警规则文件即可。
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论