Remove fluent-style kingpin

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2023-04-16 11:45:07 +02:00
parent a105e088b3
commit da6898afc4
15 changed files with 487 additions and 252 deletions

View File

@@ -6,6 +6,7 @@ import (
"strconv"
"strings"
"github.com/alecthomas/kingpin/v2"
"github.com/leoluk/perflib_exporter/perflib"
"github.com/prometheus-community/windows_exporter/log"
"github.com/prometheus/client_golang/prometheus"
@@ -51,6 +52,8 @@ func getWindowsVersion() float64 {
}
type collectorBuilder func() (Collector, error)
type flagsBuilder func(*kingpin.Application)
type perfCounterNamesBuilder func() []string
var (
builders = make(map[string]collectorBuilder)