mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
metrics: use buildinfo collector from new collectors pkg (#4187)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
parent
ecd5eeab38
commit
7b500e74b4
1 changed files with 2 additions and 1 deletions
|
@ -6,12 +6,13 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
"github.com/prometheus/client_golang/prometheus/collectors"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// define and register the metrics used in this package.
|
// define and register the metrics used in this package.
|
||||||
func init() {
|
func init() {
|
||||||
prometheus.MustRegister(prometheus.NewBuildInfoCollector())
|
prometheus.MustRegister(collectors.NewBuildInfoCollector())
|
||||||
|
|
||||||
const ns, sub = "caddy", "admin"
|
const ns, sub = "caddy", "admin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue