添加主机(多个节点以此类推)
[root@10 prometheus]# vim prometheus.yml - job_name: 'node' static_configs: - targets: ['10.10.0.221:9100'] - targets: ['10.10.0.222:9100'] - targets: ['10.10.0.220:9100'] - targets: ['10.10.0.219:9100'] - targets: ['10.10.0.218:9100']
告警规则
[root@iZ2ze4v2sdd3v6w7w8doecZ prometheus]# ./promtool check config prometheus.yml Checking prometheus.yml SUCCESS: 1 rule files found Checking rules.yml SUCCESS: 16 rules found
重新加载prometheus
[root@iZ2ze4v2sdd3v6w7w8doecZ prometheus]# systemctl reload prometheus
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论