Edit

Monitor eventstream for stopped events

This article shows how to create an Activator rule that alerts you when an eventstream stops sending events.

Scenario overview

In this scenario, you monitor an eventstream powered by real-time data from city bicycle stations. The goal is to receive an automatic alert whenever no events arrive for one hour.

The example uses an eventstream configured with sample bicycle data from London's bike stations, where each event reports a station's current capacity. Rather than ingesting the full eventstream into Activator (which would be costly and inefficient), you add a summarization node in eventstream that emits a count of events per minute. You then send this summarized output to Activator and create a rule that fires when the summarized event flow stops.

This approach provides efficient monitoring with lower cost by processing only aggregated data rather than individual events.

Set up eventstream with sample data

  1. Create a new eventstream and select Use sample data on the welcome screen.

    Screenshot of the Eventstream welcome screen with the Use sample data option highlighted.

  2. Choose Bicycles from the sample data options and select Add.

    Screenshot of the sample data selection dialog with Bicycles option and Add button.

Configure event aggregation

  1. Add a Group by transformation to your eventstream.

    Screenshot of how to add a Group by transformation node to the eventstream.

  2. Select the edit icon. In the Aggregations section, choose Count as the operation and select Add.

    Screenshot of the aggregation configuration with Count operation selected.

  3. Set the time window duration to 60 seconds and select Save.

    Screenshot of the time window configuration set to 60 seconds.

Connect to Activator

  1. Add an Activator destination to the GroupBy node.

    Screenshot of the Activator destination being added to the GroupBy node.

  2. Publish the eventstream to make your changes active.

    Screenshot of the Publish button to activate the eventstream configuration.

Create the alert rule

  1. Go to the Activator item connected to your Eventstream. You see that the system ingests only one event per minute. Select New rule.

    Screenshot of the Activator interface with aggregated events and the New rule button.

  2. In the rule configuration, choose No presence of data from the Operation dropdown and select 1 hour in the Time elapsed dropdown. Select Save and start.

    Screenshot of the rule configuration with No presence of data operation and 1 hour time elapsed settings.

Your rule is now running and sends you an email alert if the eventstream stops sending events for one hour. This alert prompts you to investigate any problems with your data pipeline.