mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-13 16:36:37 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
592c8a8d69 | ||
|
|
6f6a479535 |
@@ -5,6 +5,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
_ "net/http/pprof"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -144,6 +145,7 @@ func (coll WmiCollector) Collect(ch chan<- prometheus.Metric) {
|
|||||||
go func() {
|
go func() {
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
close(allDone)
|
close(allDone)
|
||||||
|
close(metricsBuffer)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Wait until either all collectors finish, or timeout expires
|
// Wait until either all collectors finish, or timeout expires
|
||||||
|
|||||||
Reference in New Issue
Block a user