按标签排列的路由匹配器
{
"labels": {
"team": "platform",
"env": "prod",
"severity": "critical"
}
}
通用网钩有效载荷
{
"external_id": "deploy-check-42",
"title": "Billing API error rate is high",
"message": "Error rate exceeded the production threshold for 10 minutes.",
"status": "firing",
"severity": "critical",
"labels": {
"team": "payments",
"service": "billing-api",
"env": "prod",
"alertname": "HighErrorRate"
},
"event_link": "https://monitoring.example.com/alerts/deploy-check-42"
}
按稳定字段分组
["alertname", "service", "env"]
标签沉默
{
"labels": {
"service": "billing-api",
"env": "staging"
}
}
频道重度过滤器
{
"notify_on_severities": ["critical", "high"]
}
Alertmanager接收想法
当提醒类应该前往不同的路线或频道时,为不同的IncidentRelay路由符号创建单独的Alertmanager接收器.