API Contract Smoke Test with Slack Alerts
Validate API status codes and response markers on a schedule, save evidence, and alert only on failures.
Monitors Kubernetes API Server request duration metrics to detect control plane latency spikes and client throttling.
This workflow scrapes the Kubernetes API server /metrics endpoint, measuring apiserver_request_duration_seconds for p99 LIST requests. When operators, CI/CD pipelines, or rogue controllers flood the API server with non-cached wide-scope queries, etcd and API server CPU saturate, causing kubelet heartbeats to drop and admission webhooks to time out. When latency spikes above the threshold, Slack is notified immediately.
/metrics.SLACK_WEBHOOK configured in Kestra.apiserver_current_inflight_requests to monitor concurrency limits.