Browse Source

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

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
master
Dave Henderson 4 years ago
committed by GitHub
parent
commit
7b500e74b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      metrics.go

3
metrics.go

@ -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…
Cancel
Save