AWS API Gateway Endpoint Latency and 5XX Spike Sentinel
Audits AWS API Gateway stages to detect 5XX server error surges and p99 integration latency breaches.
Audits Amazon ElastiCache CloudWatch metrics to detect burstable CPU credit starvation and Redis latency spikes.
This workflow connects to Amazon CloudWatch via the AWS CLI plugin to sample the CPUCreditBalance metric for burstable (t2, t3, t4g) ElastiCache Redis and Memcached clusters. When high traffic or command spikes exhaust CPU credits, AWS hard-throttles the cache instance to its baseline CPU performance, causing severe Redis queue backups and application timeouts. When credits drop below safety margins, an automated Slack alert is triggered.
cloudwatch:GetMetricData permissions.AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and SLACK_WEBHOOK configured in Kestra.EngineCPUUtilization and SwapUsage alongside CPU credits.