Configure buckets for the expiration-mailer processing_latency metric (#5797)
This commit is contained in:
parent
b7989d0b5d
commit
a30065edeb
|
|
@ -447,15 +447,16 @@ func initStats(stats prometheus.Registerer) mailerStats {
|
||||||
sendLatency := prometheus.NewHistogram(
|
sendLatency := prometheus.NewHistogram(
|
||||||
prometheus.HistogramOpts{
|
prometheus.HistogramOpts{
|
||||||
Name: "send_latency",
|
Name: "send_latency",
|
||||||
Help: "Time the mailer takes sending messages",
|
Help: "Time the mailer takes sending messages in seconds",
|
||||||
Buckets: metrics.InternetFacingBuckets,
|
Buckets: metrics.InternetFacingBuckets,
|
||||||
})
|
})
|
||||||
stats.MustRegister(sendLatency)
|
stats.MustRegister(sendLatency)
|
||||||
|
|
||||||
processingLatency := prometheus.NewHistogram(
|
processingLatency := prometheus.NewHistogram(
|
||||||
prometheus.HistogramOpts{
|
prometheus.HistogramOpts{
|
||||||
Name: "processing_latency",
|
Name: "processing_latency",
|
||||||
Help: "Time the mailer takes processing certificates",
|
Help: "Time the mailer takes processing certificates in seconds",
|
||||||
|
Buckets: []float64{1, 15, 30, 60, 75, 90, 120},
|
||||||
})
|
})
|
||||||
stats.MustRegister(processingLatency)
|
stats.MustRegister(processingLatency)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue