We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NewBuildInfoCollector
1 parent 39cf574 commit 585540aCopy full SHA for 585540a
examples/random/main.go
@@ -26,6 +26,7 @@ import (
26
"time"
27
28
"github.com/prometheus/client_golang/prometheus"
29
+ "github.com/prometheus/client_golang/prometheus/collectors"
30
"github.com/prometheus/client_golang/prometheus/promhttp"
31
)
32
@@ -67,7 +68,7 @@ func main() {
67
68
prometheus.MustRegister(rpcDurations)
69
prometheus.MustRegister(rpcDurationsHistogram)
70
// Add Go module build info.
- prometheus.MustRegister(prometheus.NewBuildInfoCollector())
71
+ prometheus.MustRegister(collectors.NewBuildInfoCollector())
72
73
start := time.Now()
74
0 commit comments