Switch to go modules

This commit is contained in:
Calle Pettersson
2019-10-19 16:50:13 +02:00
committed by Calle Pettersson
parent de285e1043
commit 0d4f747f8f
616 changed files with 118192 additions and 59828 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"net/http"
_ "net/http/pprof"
"os"
"sort"
"strconv"
"strings"
@@ -431,7 +430,7 @@ func (mh *metricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
reg := prometheus.NewRegistry()
reg.MustRegister(mh.collectorFactory(time.Duration(timeoutSeconds * float64(time.Second))))
reg.MustRegister(
prometheus.NewProcessCollector(os.Getpid(), ""),
prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}),
prometheus.NewGoCollector(),
version.NewCollector("wmi_exporter"),
)