Skip to content

Files

Latest commit

a9e2a25 · Mar 8, 2021

History

History
63 lines (51 loc) · 6.21 KB

stream-analytics-monitoring.md

File metadata and controls

63 lines (51 loc) · 6.21 KB
title description author ms.author ms.service ms.topic ms.date ms.custom
Understand job monitoring in Azure Stream Analytics
This article describes how to monitor Azure Stream Analytics jobs in the Azure portal.
sidramadoss
sidram
stream-analytics
how-to
03/08/2021
seodec18

Understand Stream Analytics job monitoring and how to monitor queries

Introduction: The monitor page

The Azure portal surfaces key performance metrics that can be used to monitor and troubleshoot your query and job performance. To see these metrics, browse to the Stream Analytics job you are interested in seeing metrics for and view the Monitoring section on the Overview page.

Stream Analytics job monitoring link

The window will appear as shown:

Stream Analytics job monitoring dashboard

Metrics available for Stream Analytics

Metric Definition
Backlogged Input Events Number of input events that are backlogged. A non-zero value for this metric implies that your job isn't able to keep up with the number of incoming events. If this value is slowly increasing or consistently non-zero, you should scale out your job. You can learn more by visiting Understand and adjust Streaming Units.
Data Conversion Errors Number of output events that could not be converted to the expected output schema. Error policy can be changed to 'Drop' to drop events that encounter this scenario.
CPU % Utilization (preview) The percentage of CPU utilized by your job. Even if this value is very high (90% or above), you should not increase number of SUs based on this metric alone. If number of backlogged input events or watermark delay increases, you can then use this CPU% utilization metric to determine if CPU is the bottleneck. It is possible that this metric has spikes intermittently. It is recommended to do scale tests to determine upper bound of your job after which inputs get backlogged or watermark delay increases due to CPU bottleneck.
Early Input Events Events whose application timestamp is earlier than their arrival time by more than 5 minutes.
Failed Function Requests Number of failed Azure Machine Learning function calls (if present).
Function Events Number of events sent to the Azure Machine Learning function (if present).
Function Requests Number of calls to the Azure Machine Learning function (if present).
Input Deserialization Errors Number of input events that could not be deserialized.
Input Event Bytes Amount of data received by the Stream Analytics job, in bytes. This can be used to validate that events are being sent to the input source.
Input Events Number of records deserialized from the input events. This count does not include incoming events that result in deserialization errors. The same events can be ingested by Stream Analytics multiple times in scenarios such as internal recoveries and self joins. Therefore it is recommended not to expect Input Events and Output Events metrics to match if your job has a simple 'pass through' query.
Input Sources Received Number of messages received by the job. For Event Hub, a message is a single EventData. For Blob, a message is a single blob. Please note that Input Sources are counted before deserialization. If there are deserialization errors, input sources can be greater than input events. Otherwise, it can be less than or equal to input events since each message can contain multiple events.
Late Input Events Events that arrived later than the configured late arrival tolerance window. Learn more about Azure Stream Analytics event order considerations .
Out-of-Order Events Number of events received out of order that were either dropped or given an adjusted timestamp, based on the Event Ordering Policy. This can be impacted by the configuration of the Out of Order Tolerance Window setting.
Output Events Amount of data sent by the Stream Analytics job to the output target, in number of events.
Runtime Errors Total number of errors related to query processing (excluding errors found while ingesting events or outputting results)
SU % Utilization The percentage of memory utilized by your job. If SU % utilization is consistently over 80%, the watermark delay is rising, and the number of backlogged events is rising, consider increasing streaming units. High utilization indicates that the job is using close to the maximum allocated resources.
Watermark Delay The maximum watermark delay across all partitions of all outputs in the job.

You can use these metrics to monitor the performance of your Stream Analytics job.

Customizing Monitoring in the Azure portal

You can adjust the type of chart, metrics shown, and time range in the Edit Chart settings. For details, see How to Customize Monitoring.

Stream Analytics query monitor time graph

Latest output

Another interesting data point to monitor your job is the time of the last output, shown in the Overview page. This time is the application time (i.e. the time using the timestamp from the event data) of the latest output of your job.

Get help

For further assistance, try our Microsoft Q&A question page for Azure Stream Analytics

Next steps