How can we query data to show on chart metrics of past 6 months?

fxazure4SBF 26 Reputation points
2024-06-03T04:29:59.1333333+00:00

metrics

We would like to show report of last year such as Nov 2023 however we cannot do that. Could you please show us how?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

Answer accepted by question author
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2024-06-03T05:45:52.92+00:00

    @fxazure4SBF Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    This is by design, all the platform metrics are collected and stored by Azure monitor. Azure Monitor stores the platform metrics for 93 days only and you can query the data for past 30 days only as mentioned in this documentation here.

    User's image

    If you want to store the platform metrics for long periods, then you can send metrics to log analytics workspace wherein you can store and retain the data up to 12 years based on the tiers.

    Azure Monitor Logs retains data in two states:

    • Interactive retention: Lets you retain Analytics logs for interactive queries of up to 2 years.
    • Archive: Lets you keep older, less used data in your workspace at a reduced cost. You can access data in the archived state by using search jobs and restore. You can keep data in archived state for up to 12 years.

    Hope this helps, let me know if you have any further questions on this.

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.