We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec40bf commit 92ef187Copy full SHA for 92ef187
main.go
@@ -24,6 +24,7 @@ import (
24
kingpin "github.com/alecthomas/kingpin/v2"
25
"github.com/prometheus/client_golang/prometheus"
26
"github.com/prometheus/client_golang/prometheus/collectors"
27
+ versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
28
"github.com/prometheus/client_golang/prometheus/promhttp"
29
"github.com/prometheus/common/promslog"
30
"github.com/prometheus/common/promslog/flag"
@@ -216,6 +217,7 @@ func main() {
216
217
}
218
219
reg := prometheus.NewPedanticRegistry()
220
+ reg.MustRegister(versioncollector.NewCollector("smartctl_exporter"))
221
reg.MustRegister(
222
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
223
collectors.NewGoCollector(),
0 commit comments