HashiCorp Consul Raft Leader Stability and Quorum Sentinel
Audits HashiCorp Consul Raft consensus cluster leadership and voter quorum to prevent service discovery outages.
Probe GraphQL federated subgraphs for _service SDL schema availability every 5 minutes and alert SRE teams in Slack to prevent supergraph composition outages.
Prevent distributed GraphQL supergraph outages and composition failures by continuously monitoring individual federated microservice subgraphs. In modern enterprise federated architectures (Apollo Federation, Hive Gateway, Cosmo Router), a central gateway dynamically delegates client queries to discrete underlying microservices (subgraphs) representing distinct business capabilities. Under the Apollo Federation specification, every subgraph must reliably expose its Schema Definition Language via the _service { sdl } field. When a single subgraph encounters an internal error, container crash loop, or invalid schema update, the gateway router can fail composition or drop entity resolution across user sessions. This blueprint executes a 5-minute health probe using io.kestra.plugin.graphql.Request, validates SDL response payloads, and trips an automated Slack incident alert and pipeline failure when a subgraph degrades.
Schedule trigger executes an automated probe every 5 minutes (shipped disabled by default).probe_subgraph_federation sends a federation probe query (query CheckFederationSDL { _service { sdl } __typename }) to the subgraph HTTP endpoint (subgraph_endpoint_url) authenticated via SUBGRAPH_API_KEY. It configures failOnGraphQLErrors: false and allowFailed: true to inspect error bodies safely.evaluate_subgraph_health (io.kestra.plugin.core.flow.If) evaluates two conditions: HTTP status 200 and the absence of any GraphQL error payloads:log_subgraph_healthy logs operational confirmation.alert_subgraph_outage delivers a high-priority Slack notification detailing the failing subgraph and HTTP status code. If inputs.fail_on_subgraph_down is enabled, task halt_pipeline_gate terminates the execution with an error.log_audit_summary logs the audit metrics.errors handler catches DNS resolution failures or VPC network drops._service SDL endpoints before router schema composition fails.Standard generic HTTP pings verify only that a web server is listening on port 80/443; they cannot detect whether a subgraph's GraphQL schema parser or federation metadata resolver is broken. Kestra provides native GraphQL execution via io.kestra.plugin.graphql.Request, secure secret management for service-to-service API tokens, declarative flow-control logic, and automated multi-channel incident dispatch in plain YAML.
_service { sdl }).SUBGRAPH_API_KEY: API token passed in the Authorization: Bearer header.SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used to receive incident notifications.SUBGRAPH_API_KEY and SLACK_WEBHOOK_URL).subgraph_endpoint_url with your subgraph URL and provide a recognizable subgraph_name (e.g. billing-subgraph).periodic_subgraph_probe schedule to establish continuous 5-minute availability monitoring.Loop task to query a complete array of all company subgraphs in a single execution.