alertmanager远程配置
用于远程配置alertmanager的rules。
主要步骤为:
- 通过proxy更新mount的告警规则文件
- 重启容器
# ./client -h Note: Only for update existed rule group! Usage: server [options...] Options: -h help -rulefile string rule file -show string use 'show all' to show all rule groups; use 'show ${rule_group_name}' to show detail info of a rule group -t string target
# ./client --show all -t 127.0.0.1:20000 <----Show Rule Groups----> exporter.rules node.rules
# ./client --show node.rules -t 127.0.0.1:20000 groups: - name: node.rules rules: - alert: nodeCpuLoadPressure expr: node_load15{} > 0.80 for: 15m labels: severity: warning annotations: description: Ali node cpu_load15 {{ $labels.instance }} value {{ $value }} summary: cpu_load15 > 0.80
......
本文来自博客园,作者:charlieroro,转载请注明原文链接:https://www.cnblogs.com/charlieroro/p/12124059.html