How to monitor metrics for IoT Hub built-in Event Hub (e.g. outgoing messages)?

Johannes 6 Reputation points
2022-02-23T13:17:33.74+00:00

I wanted to monitor outgoing messages for the IoT Hub built-in Event Hub but I seem there is no possibility to access this metric.

There are some metrics which give some insight. For example "Routing: messages delivered to messages/events" (namespace: microsoft.devices/iothubs, metricID: d2c.endpoints.egress.builtIn.events) which shows number of messages send to built-in Event Hub. But I cannot see outgoing messages for this built-in Event Hub.

If I use Event Hubs directly I can monitor this metric (namespace: microsoft.eventhub/namespaces, metricID: OutgoingMessages) plus Event Hub specific metrics.

How can I monitor outgoing messages for the IoT Hub built-in Event Hub (without first forwarding to an Event Hub)?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
719 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2022-02-24T21:01:38.04+00:00

    Hello @Johannes

    Have you tried the Azure Monitor: metrics: Microsoft.Devices/IotHubs, let us know if you need further help in this matter!
    There are more metrics on this document, please have a look, if they might help with your query.

    c2d.commands.egress.complete.success-->C2D message deliveries completed--Count--Total--Number of cloud-to-device message deliveries completed successfully by the device

    177620-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.