Register forgotten metrics (#4653)
Follow-up from #4606, where I forgot to register some metrics, whoops.
This commit is contained in:
parent
87746dec5c
commit
c66fd76840
1
ca/ca.go
1
ca/ca.go
|
@ -296,6 +296,7 @@ func NewCertificateAuthorityImpl(
|
|||
Name: "signature_errors",
|
||||
Help: "A counter of signature errors labelled by error type",
|
||||
}, []string{"type"})
|
||||
stats.MustRegister(signErrorCounter)
|
||||
|
||||
ca = &CertificateAuthorityImpl{
|
||||
sa: sa,
|
||||
|
|
|
@ -133,6 +133,7 @@ func newUpdater(
|
|||
Name: "ocsp_updater_ticks",
|
||||
Help: "A histogram of ocsp-updater tick latencies labelled by result",
|
||||
}, []string{"result", "long"})
|
||||
stats.MustRegister(tickHistogram)
|
||||
|
||||
// Setup loops
|
||||
updater.loops = []*looper{
|
||||
|
|
|
@ -109,14 +109,17 @@ func NewNonceService(stats prometheus.Registerer, maxUsed int, prefix string) (*
|
|||
Name: "nonces_generated",
|
||||
Help: "A counter of nonces generated",
|
||||
})
|
||||
stats.MustRegister(noncesGenerated)
|
||||
nonceValidations := prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Name: "nonces_validations",
|
||||
Help: "A counter of nonce validations labelled by result",
|
||||
}, []string{"result", "error"})
|
||||
stats.MustRegister(nonceValidations)
|
||||
nonceHeapLatency := prometheus.NewHistogram(prometheus.HistogramOpts{
|
||||
Name: "nonce_heap_latency",
|
||||
Help: "A histogram of latencies of heap pop operations",
|
||||
})
|
||||
stats.MustRegister(nonceHeapLatency)
|
||||
|
||||
return &NonceService{
|
||||
earliest: 0,
|
||||
|
|
Loading…
Reference in New Issue