AwsCLI icon
If icon
SlackIncomingWebhook icon
Schedule icon

AWS AppSync GraphQL API 5XX Server Error Rate Sentinel

Audits Amazon AppSync GraphQL APIs to detect server-side resolver errors, data source timeouts, and 5XX spikes.

Categories
CloudInfrastructure

How it works

This sentinel leverages AwsCLI to query CloudWatch for the 5XXError metric on the specified AppSync GraphQL API over rolling 15-minute intervals. It alerts backend teams when resolver execution failures or unhandled data source exceptions degrade client application queries and mutations.

What you get

  • Real-time visibility into server-side GraphQL API degradation.
  • Early warning before mobile or web frontend applications experience API disruption.
  • Automated Slack delivery tracking API ID and 5XX error count.

Who it's for

  • GraphQL API developers and full-stack engineering teams maintaining AppSync backends.
  • SREs supervising client-facing API reliability.

Why orchestrate this with Kestra

Kestra runs automated scheduled operational health checks with native error handling, secret injection, and multi-channel alerting.

Prerequisites

  • AWS IAM credentials with cloudwatch:GetMetricStatistics permissions.
  • Secrets AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import this blueprint into Kestra.
  2. Configure api_id, aws_region, and credentials.
  3. Run manually to check current 5XX error counts.

How to extend

  • Query 4XXError and Latency metrics concurrently for comprehensive API health monitoring.
  • Correlate 5XX errors with CloudWatch Log Insights queries on AppSync resolver logs.
  • Forward GraphQL error metrics to Datadog or Prometheus.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.