I can grab a bunch of container statistics for CONTAINER_GROUP_INSTANCES easily, but I am trying to get container restarts for a container group instance in a given namespace.
Is there any way to do this? Am I mixing apples and oranges here?
For the builtin:kubernetes.container.restarts metric, you do not have the CONTAINER_GROUP_INSTANCE dimension available. This is a different entityType. It is only present for metrics:
builtin:containers.cpu.*
builtin:containers.memory.*
The metric that tells us about pod restarts on Kubernetes is builtin:kubernetes.container.restarts and below you have the dimensions you can use: