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",
|
Name: "signature_errors",
|
||||||
Help: "A counter of signature errors labelled by error type",
|
Help: "A counter of signature errors labelled by error type",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
stats.MustRegister(signErrorCounter)
|
||||||
|
|
||||||
ca = &CertificateAuthorityImpl{
|
ca = &CertificateAuthorityImpl{
|
||||||
sa: sa,
|
sa: sa,
|
||||||
|
|
|
@ -133,6 +133,7 @@ func newUpdater(
|
||||||
Name: "ocsp_updater_ticks",
|
Name: "ocsp_updater_ticks",
|
||||||
Help: "A histogram of ocsp-updater tick latencies labelled by result",
|
Help: "A histogram of ocsp-updater tick latencies labelled by result",
|
||||||
}, []string{"result", "long"})
|
}, []string{"result", "long"})
|
||||||
|
stats.MustRegister(tickHistogram)
|
||||||
|
|
||||||
// Setup loops
|
// Setup loops
|
||||||
updater.loops = []*looper{
|
updater.loops = []*looper{
|
||||||
|
|
|
@ -109,14 +109,17 @@ func NewNonceService(stats prometheus.Registerer, maxUsed int, prefix string) (*
|
||||||
Name: "nonces_generated",
|
Name: "nonces_generated",
|
||||||
Help: "A counter of nonces generated",
|
Help: "A counter of nonces generated",
|
||||||
})
|
})
|
||||||
|
stats.MustRegister(noncesGenerated)
|
||||||
nonceValidations := prometheus.NewCounterVec(prometheus.CounterOpts{
|
nonceValidations := prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||||
Name: "nonces_validations",
|
Name: "nonces_validations",
|
||||||
Help: "A counter of nonce validations labelled by result",
|
Help: "A counter of nonce validations labelled by result",
|
||||||
}, []string{"result", "error"})
|
}, []string{"result", "error"})
|
||||||
|
stats.MustRegister(nonceValidations)
|
||||||
nonceHeapLatency := prometheus.NewHistogram(prometheus.HistogramOpts{
|
nonceHeapLatency := prometheus.NewHistogram(prometheus.HistogramOpts{
|
||||||
Name: "nonce_heap_latency",
|
Name: "nonce_heap_latency",
|
||||||
Help: "A histogram of latencies of heap pop operations",
|
Help: "A histogram of latencies of heap pop operations",
|
||||||
})
|
})
|
||||||
|
stats.MustRegister(nonceHeapLatency)
|
||||||
|
|
||||||
return &NonceService{
|
return &NonceService{
|
||||||
earliest: 0,
|
earliest: 0,
|
||||||
|
|
Loading…
Reference in New Issue