이름 *

경고 라우팅 및 사건 응답을위한 복사 가능한 예.

이 예제를 사용하여 경로 일치, 페이로드 라벨, 그룹화, 침묵 및 로컬 IncidentRelay 배포에서 알림 동작을 테스트합니다.

상표로 경로 matcher

{
  "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 수신기를 작성하면 알림 클래스가 다른 경로 또는 채널로 이동합니다.