Interview Prep/Monitoring & Observability/Alerting and Alertmanager

PagerDuty never receives alerts; Alertmanager logs `unexpected status code 400 ... Event object is invalid`

IntermediateTroubleshootingAlerting and Alertmanager
Answer

Likely causes → Using service_key (Events API v1) with an Events API v2 integration key, or the payload exceeds limits from huge annotations.

Diagnose → Check the integration type in PagerDuty and the receiver config.

Fix → For v2 integrations use routing_key: (or routing_key_file). Trim large annotation fields.

Prevent → Test receivers with amtool alert add in staging.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager