Interview Prep/Monitoring & Observability/Alerting and Alertmanager

Alertmanager logs `unexpected status code 404: no_service` / `invalid_token` for Slack

BeginnerTroubleshootingAlerting and Alertmanager
Answer

Likely causes → The incoming webhook was deleted or rotated, or the Secret has a trailing newline.

Diagnose →

kubectl get secret alertmanager-slack -n monitoring -o jsonpath='{.data.url}' | base64 -d | od -c | tail -2

Fix → Create a new webhook, store it without newline (printf '%s'), reference it via api_url_file.

Prevent → Track webhook ownership; a departing admin can revoke it.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager