From a0e0927d04be4777eac1ec54085375108f32b17f Mon Sep 17 00:00:00 2001 From: aexel90 Date: Mon, 28 Dec 2020 10:05:54 +0100 Subject: [PATCH] stable name label value --- collector/collector.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collector/collector.go b/collector/collector.go index 3c53e1e..ed88e4b 100644 --- a/collector/collector.go +++ b/collector/collector.go @@ -182,7 +182,9 @@ func getLabelValues(labelNames []string, result map[string]interface{}) ([]strin labelValues := []string{} for _, labelname := range labelNames { labelValue := fmt.Sprintf("%v", result[labelname]) - labelValue = strings.ToLower(labelValue) + if labelname != "Name" { + labelValue = strings.ToLower(labelValue) + } labelValues = append(labelValues, labelValue) } return labelValues, nil