Azure Container Instance Metrics are Empty

Daniel Mackay 1 Reputation point
2022-02-27T08:33:47.597+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).

178173-image.png

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.
757 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-02-27T14:12:00.893+00:00

    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

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.
    0 comments No comments

  2. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-02-28T17:27:15.773+00:00

    Metrics are reported immediately for the container instance I just created as below:
    178582-image.png

    The image I used is the public docker image from my docker hub repository: registry.hub.docker.com/manuphilip/tomcat

    You may quickly try the same image and see if it works in the region you tested the other image.

    1 person found this answer helpful.

  3. Daniel Mackay 1 Reputation point
    2022-02-28T10:51:23.553+00:00

    I don't see an option to 'enable container insights' from within my container instance. I only see the following:

    178456-image.png

    Is your example above definitely for container instances? And not Kubernetes?

    Did you have to link the workspace to the ACI on creation?


  4. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-03-05T05:28:17.88+00:00

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

    I think, you can go for a different approach here to monitor the instances like a Prometheus system or container insights etc.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


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.