Enable Azure VM utilization report after 3 months

azim 20 Reputation points
2024-05-14T11:20:05.68+00:00

Hi all,

Hope everyone's doing well.

I've been generating monthly utilization report for Azure VMs for (CPU, Memory, disk and network). I noticed i can only retrieve within the 3 months which i generate the report, how do I generate beyond 3 months or what are the resources i will require to keep the metrics beyond 3 months.

Wish to hear from you soon to share your inputs!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,294 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 25,041 Reputation points
    2024-05-14T12:09:24.9933333+00:00

    Hello azim

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    By default, Azure Monitor stores metrics for approximately 3 months. If you want to keep the metrics beyond 3 months, you can use Azure Monitor Log Analytics to store the metrics for a longer period of time.

    To store metrics in Log Analytics, you need to create a Log Analytics workspace and configure Azure Monitor to send the metrics to the workspace.

    Ref:
    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-workspace-overview
    https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/tutorial-logs-dashboards
    https://learn.microsoft.com/en-us/azure/azure-monitor/vm/tutorial-monitor-vm-guest

    Once the metrics data is in the Log Analytics workspace, you can use Log Analytics to query and analyze the data. You can also create custom dashboards and alerts based on the metrics data. You can set the retention period. Once the retention period is set, Log Analytics will store the metrics data for the specified period of time.

    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-retention-archive?tabs=portal-3%2Cportal-1%2Cportal-2

    Please note that storing metrics data in Log Analytics will incur additional costs. You can refer to the Azure Monitor pricing page for more information on pricing.

    https://azure.microsoft.com/en-in/pricing/details/monitor/

    Hope this helps.

    0 comments No comments

0 additional answers

Sort by: Most helpful