Monitor Event Grid message delivery

This article describes how to use the portal to see metrics for Event Grid topics and subscriptions, and create alerts on them.

Metrics

The portal displays metrics for the status of delivering event messages.

For topics, here are some of the metrics:

  • Publish Succeeded: Event successfully sent to the topic, and processed with a 2xx response.
  • Publish Failed: Event sent to the topic but rejected with an error code.
  • Unmatched: Event successfully published to the topic, but not matched to an event subscription. The event was dropped.

For subscriptions, here are some of the metrics:

  • Delivery Succeeded: Event successfully delivered to the subscription's endpoint, and received a 2xx response.

  • Delivery Failed: Every time the service tries to deliver and the event handler doesn't return a success 2xx code, the Delivery Failed counter is incremented. If we attempt to deliver the same event multiple times and fail, the Delivery Failed counter is incremented for each failure.

  • Expired Events: Event was not delivered and all retry attempts were sent. The event was dropped.

  • Matched Events: Event in the topic was matched by the event subscription.

    Note

    For the full list of metrics, see Metrics supported by Azure Event Grid.

View custom topic metrics

If you've published a custom topic, you can view the metrics for it.

  1. Sign in to Azure portal.

  2. In the search bar at the topic, type Event Grid Topics, and then select Event Grid Topics from the drop-down list.

    Search for and select Event Grid Topics

  3. Select your custom topic from the list of topics.

    Select your custom topic

  4. View the metrics for the custom event topic on the Event Grid Topic page. In the following image, the Essentials section that shows the resource group, subscription etc. is minimized.

    View event metrics

You can create charts with supported metrics by using the Metrics tab of the Event Grid Topic page.

Topic - Metrics page

To learn more about metrics, see Metrics in Azure Monitor

For example, see the metrics chart for the Published Events metric.

Published events metric

View subscription metrics

  1. Navigate to the Event Grid Topic page by following steps from the previous section.

  2. Select the subscription from the bottom pane as shown in the following example.

    Select event subscription

    You can also search for Event Grid Subscriptions in the search bar in the Azure portal, select Topic Type, Subscription, and Location to see an event subscription.

    Select event subscription from Event Grid Subscriptions page

    For custom topics, select Event Grid Topics as Topic Type. For system topics, select the type of the Azure resource, for example, Storage Accounts (Blob, GPv2).

  3. See the metrics for the subscription on the home page for the subscription in a chart. You can see General, Error, Latency, and Dead-Letter metrics for past 1 hour, 6 hours, 12 hours, 1 day, 7 days, or 30 days.

    Metrics on the subscription home page

View system topic metrics

  1. Sign in to Azure portal.

  2. In the search bar at the topic, type Event Grid System Topics, and then select Event Grid System Topics from the drop-down list.

    Search for and select Event Grid System Topics

  3. Select your system topic from the list of topics.

    Select your system topic

  4. View the metrics for the system topic on the Event Grid System Topic page. In the following image, the Essentials section that shows the resource group, subscription etc. is minimized.

    View system topic metrics on the overview page

You can create charts with supported metrics by using the Metrics tab of the Event Grid Topic page.

System Topic - Metrics page

To learn more about metrics, see Metrics in Azure Monitor

Next steps

See the following articles: