Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View 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]](可选集成)