ラベルによるルートマッチング
{
"labels": {
"team": "platform",
"env": "prod",
"severity": "critical"
}
}
一般的なwebhookペイロード
{
"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"
}
}
チャネルのseverityフィルター
{
"notify_on_severities": ["critical", "high"]
}
Alertmanager 受信機の考え
アラートクラスが異なるルートやチャネルに行くべきときに、異なる IncidentRelay ルートトークン用の別の Alertmanager 受信機を作成します。