Container Monitoring in Azure Monitor without Log Analytics Agent

Neel 0 Reputation points
2023-03-02T15:13:44.24+00:00

We have some Docker containers running on RHEL 8 Azure VM. I want to get the metrics from the container to Log Analytics Workspace. (As per this document we have to install the Log Analytics Agent to get the container metrics)

My Question: Can we get the container metrics without installing Log Analytics Agent only with Azure Monitor agent on VM As Log Analytics Agent is soon going to be deprecated?

Document link : https://learn.microsoft.com/en-us/azure/azure-monitor/containers/containers Msft document suggestion : Install and use Docker with a Log Analytics agent. Based on your operating system and Docker orchestrator, you can use the following methods to configure your agent.

For standalone hosts: On supported Linux operating systems, install and run Docker and then install and configure the Log Analytics agent for Linux.

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

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 12,556 Reputation points
    2023-03-03T05:02:37.6633333+00:00

    @Neel Thank you for posting this question here.

    The doc referenced in the question points to legacy or soon to be retired feature, as mentioned in the question. To enable container insights monitoring using the newer solution, the workload will have to be migrated to Kubernetes. Please see the following link for more details - Steps to transition to new container insights.

    I am not sure if your workload is running as a stand along container on VM or if it is part of one of the container orchestration systems. If it is standalone, currently the AMA does not have the capability to monitor the container itself - you could use it to monitor the underlying VM though. However, if you are using one of the following supported environments, the container insights with newer agent can be used for monitoring the workload -

    Please let me know if you have any questions.

    Please click Accept answer and Yes if the answer helped so that it can help others in the community looking for help on similar topics.