0
votes

Metrics for our Azure Container instances has stopped showing up in the portal and when querying Azure Monitor using the CLI.

I've tried to redeploying instances, restart the containers, and disabling features such as log analytics.

These are the options to az we use to deploy our containers, with redacted values:

az container create \
  --resource-group "" \
  --name "" \
  --image  \
  --registry-username "" \
  --registry-password "" \
  --ports \
  --ip-address public \
  --dns-name-label "" \
  --azure-file-volume-account-name "" \
  --azure-file-volume-account-key "" \
  --azure-file-volume-share-name "" \
  --azure-file-volume-mount-path "" \
  --cpu 1 \
  --memory 1 \
  --log-analytics-workspace "" \
  --log-analytics-workspace-key ""

According to the documentation metrics should just be there, so I'm curious as to why metrics have seemingly stopped. I'm not sure if there's some newly introduced option that needs to be enabled?

1

1 Answers

0
votes

For your issue, it seems there is no problem if you create the Azure container instance with the CLI command and input the correct parameters. So I guess the possible reason is that the container instance is not in the running state so that the metrics are also stoped.

You can take a look at the steps about the Container instance logging with Azure Monitor logs to see if there are other steps missing.