alertmanager远程配置
发布日期:2021-05-09 01:09:15 浏览次数:24 分类:原创文章

本文共 764 字,大约阅读时间需要 2 分钟。

用于远程配置alertmanager的rules。

主要步骤为:

  • 通过proxy更新mount的告警规则文件
  • 重启容器
# ./client -hNote: 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.rulesnode.rules
# ./client --show node.rules -t 127.0.0.1:20000groups:- 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
......

 

参见:

上一篇:linux线程调度策略
下一篇:rfc7230 Message Syntax and Routing

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2025年04月19日 20时55分03秒