Request icon
If icon
Log icon
Generate icon
JsonObjectGenerator icon
Schedule icon

API Reliability Monitor with Kestra

Monitor HTTP endpoint availability with scheduled health checks, configurable expected status codes, and structured monitoring events.

Categories
CoreInfrastructure

This Blueprint provides a reusable API reliability monitoring workflow that checks an HTTP endpoint on an hourly schedule and evaluates its response against a configurable expected HTTP status code.

Features

  • Configure the endpoint using the api_url input.
  • Set the expected HTTP response code using expected_status.
  • Log whether the endpoint is healthy or unhealthy.
  • Generate a structured health event containing the endpoint, expected status, actual status, execution ID, and check time.
  • Run checks automatically every hour.

Prerequisites

  • A running Kestra instance.
  • Network access from Kestra to the configured HTTP endpoint.
  • No secrets are required for the default public HTTP test endpoint.

Quick start

  1. Import this flow into Kestra.
  2. Set api_url to the endpoint you want to monitor.
  3. Set expected_status to the HTTP status code that indicates success.
  4. Execute the flow manually to inspect the health result and generated event.
  5. Enable the hourly schedule for recurring checks.

Expected results

  • If the response status matches expected_status, the flow logs a healthy result.
  • If the response status differs, the flow logs an unhealthy result.
  • The health event includes the endpoint, expected and actual status codes, execution ID, and check time.

Notes

The workflow explicitly allows HTTP 200 and 500 responses so they can be evaluated by the health-check logic. Other HTTP errors may fail the request task unless added to allowedResponseCodes.

See How

New to Kestra?

Use blueprints to kickstart your first workflows.