diff options
author | Dave Henderson <[email protected]> | 2021-06-04 00:19:16 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-04 00:19:16 -0400 |
commit | 7b500e74b40714874278816dcce128a4b8e7389d (patch) | |
tree | 99a13bc7eb73b1ad91145d23ae22f81056cea8f7 /metrics.go | |
parent | ecd5eeab3857a0d6903a85bf52183171bda1920c (diff) | |
download | caddy-7b500e74b40714874278816dcce128a4b8e7389d.tar.gz caddy-7b500e74b40714874278816dcce128a4b8e7389d.zip |
metrics: use buildinfo collector from new collectors pkg (#4187)
Signed-off-by: Dave Henderson <[email protected]>
Diffstat (limited to 'metrics.go')
-rw-r--r-- | metrics.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/metrics.go b/metrics.go index 55fb0a310..ab9d79784 100644 --- a/metrics.go +++ b/metrics.go @@ -6,12 +6,13 @@ import ( "strings" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promauto" ) // define and register the metrics used in this package. func init() { - prometheus.MustRegister(prometheus.NewBuildInfoCollector()) + prometheus.MustRegister(collectors.NewBuildInfoCollector()) const ns, sub = "caddy", "admin" |