Skip to content

Commit 0a025db

Browse files
committed
add comment
1 parent 5d01ef4 commit 0a025db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/collector_metric.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func MeasureCollectTime(ch chan<- Metric, exporter, collector string) func() {
2323
"collector_scrape_time_ms",
2424
"Time taken for scrape by collector",
2525
[]string{"exporter"},
26-
Labels{"collector": collector},
26+
Labels{"collector": collector}, // to have ID calculated correctly
2727
)
2828

2929
return func() {

0 commit comments

Comments
 (0)