We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77d8022 + 6258d3a commit 0ce4b1cCopy full SHA for 0ce4b1c
main.go
@@ -23,6 +23,7 @@ import (
23
24
kingpin "github.com/alecthomas/kingpin/v2"
25
"github.com/prometheus/client_golang/prometheus"
26
+ versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
27
"github.com/prometheus/client_golang/prometheus/promhttp"
28
"github.com/prometheus/common/promslog"
29
"github.com/prometheus/common/promslog/flag"
@@ -136,6 +137,7 @@ func main() {
136
137
}
138
}()
139
140
+ prometheus.MustRegister(versioncollector.NewCollector("ipmi_exporter"))
141
localCollector := metaCollector{target: targetLocal, module: "default", config: sc}
142
prometheus.MustRegister(&localCollector)
143
0 commit comments