New to Kestra?
Use blueprints to kickstart your first workflows.
Poll an Azure Event Hub on a schedule, count the events consumed in the window, and page PagerDuty automatically when volume drops below the expected minimum.
Catch a dead Event Hub producer before your downstream consumers notice the gap. This blueprint polls an Azure Event Hub every 5 minutes, counts how many events arrived in a 30-second consumption window, and pages on-call the moment that count falls below the floor you expect for a healthy producer. It closes the common gap in Azure Event Hub orchestration: nothing in Event Hubs itself tells you when a stream goes quiet, so a stalled producer looks identical to a slow news day until a downstream job starts failing on missing data.
io.kestra.plugin.core.trigger.Schedule fires every 5 minutes (*/5 * * * *).io.kestra.plugin.azure.eventhubs.Consume polls the telemetry hub in the kestra-eventhub-ns namespace for up to PT30S, deserializes bodies as JSON, and checkpoints progress to a Blob Storage container so the next run picks up where this one left off.io.kestra.plugin.core.flow.If evaluates outputs.consume_batch.eventsCount < 5. Tune this floor to whatever your quietest healthy window looks like.io.kestra.plugin.pagerduty.PagerDutyAlert fires a trigger event with a dedup_key, so repeated low-volume windows update the same incident instead of opening a new one every 5 minutes.Event Hubs has no native "alert me when volume drops" primitive; that logic usually lives in a bespoke Azure Function on a timer, with its own retry and alerting code to maintain. Kestra replaces that custom function with a declarative flow: the schedule, the consumption window, the threshold check, and the PagerDuty call are all one auditable execution history, with retries and checkpointing handled by the platform instead of hand-rolled code.
EVENTHUBS_CONNECTION: Event Hubs connection string with listen permissions.BLOB_CONNECTION: Storage account connection string for the checkpoint container.PAGERDUTY_EVENT_URL: PagerDuty Events API v2 endpoint (https://events.pagerduty.com/v2/enqueue).PAGERDUTY_ROUTING_KEY: PagerDuty integration routing key.eventHubName and namespace to your Event Hub.checkpointStoreProperties.containerName to an existing Blob container.eventsCount < 5 floor to your producer's normal quiet-window volume.PagerDutyAlert for io.kestra.plugin.slack.notifications.SlackIncomingWebhook or Microsoft Teams if PagerDuty isn't in your stack.