Forum Discussion
BenjaminN700
Oct 21, 2024Copper Contributor
MetricsQueryClient returning different results based on timespan
I'm using the Python MetricsQueryClient to list out how many tokens were used on certain days via the APIM policy "azure-openai-emit-token-metric". The problem is that when I call the query_resource(...
Kidd_Ip
Dec 14, 2025MVP
This is a known quirk of Azure Monitor’s metrics ingestion and aggregation, not a coding error on your side. If you need reliable daily counts, stick to smaller timespan windows or add a delay before querying month‑wide ranges.
MetricsQueryClient returns empty results · Issue #30903 · Azure/azure-sdk-for-net