Skip to content

Commit 75386c8

Browse files
committed
fix: Clarify allowed format for metric label overrides
Clarify on the allowed format flag "--allow-metric-labels"
1 parent 78d6490 commit 75386c8

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/component-base/metrics

1 file changed

+1
-1
lines changed

staging/src/k8s.io/component-base/metrics/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func validateAllowMetricLabel(allowListMapping map[string]string) error {
129129
for k := range allowListMapping {
130130
reg := regexp.MustCompile(metricNameRegex + `,` + labelRegex)
131131
if reg.FindString(k) != k {
132-
return fmt.Errorf("--allow-metric-labels must have a list of kv pair with format `metricName:labelName=labelValue, labelValue,...`")
132+
return fmt.Errorf("--allow-metric-labels must have a list of kv pair with format `metricName,labelName=labelValue, labelValue,...`")
133133
}
134134
}
135135
return nil

0 commit comments

Comments
 (0)