diff --git a/lib/promscrape/config.go b/lib/promscrape/config.go index 5ca2e5eae..77029f7be 100644 --- a/lib/promscrape/config.go +++ b/lib/promscrape/config.go @@ -893,7 +893,7 @@ func getParamsFromLabels(labels []prompbmarshal.Label, paramsOrig map[string][]s func mergeLabels(job, scheme, target, metricsPath string, extraLabels, externalLabels, metaLabels map[string]string, params map[string][]string) []prompbmarshal.Label { // See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - m := make(map[string]string, 4 + len(externalLabels) + len(params) + len(extraLabels) + len(metaLabels)) + m := make(map[string]string, 4+len(externalLabels)+len(params)+len(extraLabels)+len(metaLabels)) for k, v := range externalLabels { m[k] = v }