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:
Elana Hashman
2018-09-14 16:07:33 -04:00
parent 8b98e802ed
commit 3539e89af2
3 changed files with 11 additions and 1 deletions

View File

@@ -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
}