Files
nexus/wiki/concepts/Alertmanager.md
2026-04-17 08:38:12 +08:00

42 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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]](可选集成)