Azure Monitor agent instability

Lionel POCKAM 0 Reputation points
2023-08-24T09:56:16.0366667+00:00

Sometimes i have some VM who does not found metrics data but after réinstalling the monitor agent the VM could be able to get métrics agent (CPU,Disk etc.) Is there anyway to prevent monitor agent for this dysfunction ?

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

1 answer

Sort by: Most helpful
  1. Tech-Hyd-1989 5,796 Reputation points
    2023-08-28T16:04:45.97+00:00

    Hello Lionel POCKAM

    If you are experiencing issues with the Azure Monitor agent not collecting metrics data from your VMs, there are a few things you can try to prevent this from happening:

    1. Ensure that the Azure Monitor agent is installed and up to date on all VMs: Make sure that the Azure Monitor agent is installed and running on all VMs that you want to monitor. You can use Azure Policy to enforce this across your environment.
    2. Check the agent logs for errors: If you are experiencing issues with the Azure Monitor agent, you can check the agent logs for errors. The logs can provide information about what is causing the issue and help you troubleshoot the problem.
    3. Check the VM's network connectivity: Ensure that the VM has network connectivity to the Azure Monitor service. If the VM is behind a firewall or proxy, make sure that the necessary ports are open and that the proxy is configured correctly.
    4. Check the VM's permissions: Ensure that the VM has the necessary permissions to send metrics data to Azure Monitor. The VM must have the "Log Analytics Contributor" role assigned to it.
    5. Use Azure Diagnostics Extension: You can use the Azure Diagnostics Extension to collect metrics data from your VMs. This extension is designed to work with Azure Monitor and can help you collect metrics data even if the Azure Monitor agent is not working correctly.

    By following these steps, you can help prevent issues with the Azure Monitor agent and ensure that you are collecting metrics data from all of your VMs.

    <If you are satisfied with the answer, please "Accept as Answer">

    0 comments No comments

Your answer

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