stable name label value
This commit is contained in:
parent
95d43ee327
commit
a0e0927d04
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue