Metrics for Azure container instances are not logging.

Martinez Lopez 0 Reputation points
2024-05-31T11:38:53.7766667+00:00

I have a recently created Azure Container Instance that has been running for 5 hours now, but I don't see any metric data (CPU, Memory, etc).

I have confirmed that the container is running, there has been no restarts, and the application is functioning as expected. There are also no other containers running the container group.

Why are these metrics not working? Is this a bug or do I need to setup another resource to get data collected?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
662 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 6,395 Reputation points
    2024-05-31T12:11:47.6166667+00:00

    Hi , Welcome to MS Q&A

    I think. Azure Monitor is now supporting only Linux containers. It helps to identify the issue Reference: container-instances-monitor

    So if your instance is on windows then it is not supported.

    Please verify it should be Linux, please check below image

    User's image

    Kindly accept answer, if it helps

    Thankyou

    Deepanshu


  2. v-vvellanki-MSFT 4,915 Reputation points Microsoft Vendor
    2024-05-31T12:39:07.2433333+00:00

    Hi @Martinez Lopez,
    Thanks for contacting Microsoft Q&A platform.
    Adding to @Deepanshu katara insights, if your instance is Linux and still you are not seeing metrics are not logging, please consider below points.

    A Log analytics Workspace should be enabled to get the metrics. Have you enabled the container Insights which involves enabling a Log Analytics Workspace also as indicated below:

    178222-image.png

    178129-image.png

    Hope this helps you.

    0 comments No comments