Hi,
Seems like a config issue or timeout between the Grafana and Azure monitor, did you raise this query with Grafana? If not I will suggest you to put this same query with Grafana. However you can check the timeout settings for Azure Monitor APIs - https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/timeouts
Hope this helps
JS
===
Please Accept the answer if the information helped you. This will help us and others in the community as well.
@Heorhii Teriaiev I've reached out to the team and we'll need to take this offline to better assist you. Can you please email your subscription id to AzCommunity[at]microsoft[dot]com ATTN: Ryan with a link to this post.