Merge pull request #335 from martinlindhe/perflib-cpu

Use perflib for cpu collector
This commit is contained in:
Calle Pettersson
2019-08-04 14:30:46 +02:00
committed by GitHub
47 changed files with 2026 additions and 310 deletions

View File

@@ -1699,7 +1699,7 @@ func (c *MSSQLCollector) execute(name string, fn mssqlCollectorFunc, ch chan<- p
// Collect sends the metric values for each metric
// to the provided prometheus Metric channel.
func (c *MSSQLCollector) Collect(ch chan<- prometheus.Metric) error {
func (c *MSSQLCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error {
wg := sync.WaitGroup{}
enabled := mssqlExpandEnabledCollectors(*mssqlEnabledCollectors)