Auto-sync: 2026-04-17 08:37
This commit is contained in:
42
wiki/concepts/Alertmanager.md
Normal file
42
wiki/concepts/Alertmanager.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: "Alertmanager"
|
||||
type: concept
|
||||
tags: [alerting, prometheus, notification, devops]
|
||||
sources: [家庭监控方案-prometheus-grafana-node-exporter-cadvisor-blackbox]
|
||||
last_updated: 2026-04-16
|
||||
---
|
||||
|
||||
## Definition
|
||||
Alertmanager 是 Prometheus 告警处理组件,负责接收 Prometheus server 发送的告警,进行抑制、分组后推送到各种通知渠道。
|
||||
|
||||
## Key Features
|
||||
- **抑制(Inhibition)**:避免冗余告警
|
||||
- **分组(Grouping)**:将相似告警合并
|
||||
- **路由(Routing)**:基于标签匹配发送到不同接收者
|
||||
- **通知渠道**:邮件、Slack、Teams、Telegram、PagerDuty、webhook 等
|
||||
|
||||
## Configuration Structure
|
||||
```yaml
|
||||
route:
|
||||
receiver: default
|
||||
group_wait: 10s
|
||||
group_interval: 5m
|
||||
repeat_interval: 3h
|
||||
|
||||
receivers:
|
||||
- name: default
|
||||
email_configs:
|
||||
- to: "example@example.com"
|
||||
```
|
||||
|
||||
## Common Notification Types
|
||||
- 邮件(email)
|
||||
- Slack
|
||||
- Microsoft Teams
|
||||
- Telegram
|
||||
- PagerDuty
|
||||
- Webhook
|
||||
|
||||
## Connections
|
||||
- [[Alertmanager]] ← receives_alerts ← [[Prometheus]]
|
||||
- [[Alertmanager]] → sends_notifications → [[Grafana]](可选集成)
|
||||
Reference in New Issue
Block a user