Metrics labels#
The metrics that MKE exposes in Prometheus have standardized labels, depending on the target resource.
Container labels
| Label name | Value |
|---|---|
collection |
The collection ID of the collection the container is in, if any. |
container |
The ID of the container. |
image |
The name of the container image. |
manager |
Set to true if the container node is an MKE manager. |
name |
The container name. |
podName |
The pod name, if the container is part of a Kubernetes Pod. |
podNamespace |
The pod namespace, if the container is part of a Kubernetes Pod namespace. |
podContainerName |
The container name in the pod spec, if the container is part of a Kubernetes pod. |
service |
The service ID, if the container is part of a Swarm service. |
stack |
The stack name, if the container is part of a Docker Compose stack. |
Container networking labels
| Label name | Value |
|---|---|
collection |
The collection ID of the collection the container is in, if any. |
container |
The ID of the container. |
image |
The name of the container image. |
manager |
Set to true if the container node is an MKE manager. |
name |
The container name. |
network |
The ID of the network. |
podName |
The pod name, if the container is part of a Kubernetes pod. |
podNamespace |
The pod namespace, if the container is part of a Kubernetes pod namespace. |
podContainerName |
The container name in the pod spec, if the container is part of a Kubernetes pod. |
service |
The service ID, if the container is part of a Swarm service. |
stack |
The stack name, if the container is part of a Docker Compose stack. |
Note
The container networking labels are the same as the Container labels, with
the addition of network.
Node labels
| Label name | Value |
|---|---|
manager |
Set to true if the node is an MKE manager. |
See also