Merge pull request #1392 from breed808/filtered_metrics
This commit is contained in:
commit
21a64b1a62
|
@ -32,7 +32,14 @@ func (c *Collectors) BuildServeHTTP(disableExporterMetrics bool, timeoutMargin f
|
|||
}
|
||||
filteredCollectors[name] = col
|
||||
}
|
||||
return nil, NewPrometheus(timeout, c, c.logger)
|
||||
|
||||
filtered := Collectors{
|
||||
logger: c.logger,
|
||||
collectors: filteredCollectors,
|
||||
perfCounterQuery: c.perfCounterQuery,
|
||||
}
|
||||
|
||||
return nil, NewPrometheus(timeout, &filtered, c.logger)
|
||||
}
|
||||
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Reference in New Issue