mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
retrieval: fix pod label and annotation prefixes
This commit is contained in:
parent
2e18c81a00
commit
a318d9ad27
|
@ -109,12 +109,12 @@ func podLabels(pod *apiv1.Pod) model.LabelSet {
|
|||
}
|
||||
|
||||
for k, v := range pod.Labels {
|
||||
ln := strutil.SanitizeLabelName(serviceLabelPrefix + k)
|
||||
ln := strutil.SanitizeLabelName(podLabelPrefix + k)
|
||||
ls[model.LabelName(ln)] = lv(v)
|
||||
}
|
||||
|
||||
for k, v := range pod.Annotations {
|
||||
ln := strutil.SanitizeLabelName(serviceAnnotationPrefix + k)
|
||||
ln := strutil.SanitizeLabelName(podAnnotationPrefix + k)
|
||||
ls[model.LabelName(ln)] = lv(v)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue