Azure Monitor REST API - Empty timeseries data points

Koen Annys 1 Reputation point
2021-07-02T07:41:00.35+00:00

I'm using the Monitor REST API in order to retrieve data from various resources, e.g. for the Storage Accounts.
Following metrics are available as described here

Based on the metric definitions, e.g. the metric Availability supports a 1 minute interval. This would mean that aggregated data points should be available for every 1 minute. If i perform a query to retrieve the availability with Timespan 1minute, Interval 1 minute, i get a valid response with status "success" but the resturned timeseries points do not always have a valid data point next to the timestamp value. When increasing the timespan the behaviour is similar, sometimes having 1 point with data but most empty.

Increasing the Interval to 15minutes seems to improve the situation but its not reliable yet to always have a datapoint.

111258-timeseries-datapoint.png

This behaviour seems to be happening for other metrics as well and same result can be seen when using the Azure monitor app itself to view a graph.
Several gaphs occur in the line which correspond to empty datapoints. To have a consistent result, interval should be set to 1H.

111238-azure-monitor-graph.png

How can this behaviour be explained , is there anything that can be done in order to be able to use small granularity?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 29,306 Reputation points MVP Volunteer Moderator
    2021-07-05T13:04:59.64+00:00

    Hi,
    This is probably caused by the specific metric you have chosen. As far as I can see this is availability metric for storage account. Most probably that metric is generated only once in an hour thus you have 1 hour granularity.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

Your answer

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