@marcel91200 / caddy Mirror · read-only / commits / 7b500e74
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

metrics: use buildinfo collector from new collectors pkg (#4187)

Signed-off-by: Dave Henderson <dhenderson@gmail.com>

Dave Henderson committed Jun 4, 2021 at 00:19 UTC 7b500e74b40714874278816dcce128a4b8e7389d
1 file changed +2 -1
metrics.go
+2 -1
@@ -6,12 +6,13 @@ import (
6 "strings"
7
8 "github.com/prometheus/client_golang/prometheus"
9 + "github.com/prometheus/client_golang/prometheus/collectors"
10 "github.com/prometheus/client_golang/prometheus/promauto"
11 )
12
13 // define and register the metrics used in this package.
14 func init() {
14 - prometheus.MustRegister(prometheus.NewBuildInfoCollector())
15 + prometheus.MustRegister(collectors.NewBuildInfoCollector())
16
17 const ns, sub = "caddy", "admin"
18