通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
[TOC] > [官方手册](https://prometheus.io/docs/alerting/latest/overview/) ## 概述 Prometheus的警报分为两个部分: 1. Prometheus服务器中的警报规则将警报发送到Alertmanager。 2. 该[Alertmanager](https://prometheus.io/docs/alerting/latest/alertmanager/)然后管理这些警报,包括沉默,抑制,聚集和通过的方法,如电子邮件发出通知,对呼叫通知系统,以及即时通讯平台。 设置警报和通知的主要步骤是: * 设置和[配置](https://prometheus.io/docs/alerting/latest/configuration/)Alertmanager * [配置Prometheus](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config)与Alertmanager对话 * 在Prometheus中创建[警报规则](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) ### 告警分组 - Alertmanager可以对告警通知进行分组,将多条告警合合并为一个通知 - 基于告警中包含的标签,如果满足group_by中定义标签名称,那么这些告警将会合并为一个通知发送给接收器 - 可以通过group_wait参数设置等待时间,如果在等待时间内当前group接收到了新的告警,这些告警将会合并为一个通知向receiver发送 - group_interval配置,则用于定义相同的Group之间发送告警通知的时间间隔 ## 内置接收方式: email_config(常用) hipchat_config pagerduty_config pushover_config slack_config opsgenie_config victorops_config wechat_configs(常用) webhook_config(常用) 推荐使用 webhook 来集成自定义的接收方式。可以参考[这些集成的例子](https://prometheus.io/docs/operating/integrations/#alertmanager-webhook-receiver),譬如[将钉钉接入 Prometheus AlertManager WebHook](http://theo.im/blog/2017/10/16/release-prometheus-alertmanager-webhook-for-dingtalk/)