mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Rename labels to match instrumentation guidelines
For the next release, we include both sets of labels for pods and containers: "container_name" and "container", "pod_name" and "pod". In future releases, the "*_name" metrics will be deprecated.
This commit is contained in:
@@ -865,8 +865,10 @@ func containerPrometheusLabelsFunc(s stats.StatsProvider) metrics.ContainerLabel
|
||||
metrics.LabelName: name,
|
||||
metrics.LabelImage: image,
|
||||
"pod_name": podName,
|
||||
"pod": podName,
|
||||
"namespace": namespace,
|
||||
"container_name": containerName,
|
||||
"container": containerName,
|
||||
}
|
||||
return set
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user