Skip to content

Commit a30065e

Browse files
authored
Configure buckets for the expiration-mailer processing_latency metric (letsencrypt#5797)
1 parent b7989d0 commit a30065e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/expiration-mailer/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,16 @@ func initStats(stats prometheus.Registerer) mailerStats {
447447
sendLatency := prometheus.NewHistogram(
448448
prometheus.HistogramOpts{
449449
Name: "send_latency",
450-
Help: "Time the mailer takes sending messages",
450+
Help: "Time the mailer takes sending messages in seconds",
451451
Buckets: metrics.InternetFacingBuckets,
452452
})
453453
stats.MustRegister(sendLatency)
454454

455455
processingLatency := prometheus.NewHistogram(
456456
prometheus.HistogramOpts{
457-
Name: "processing_latency",
458-
Help: "Time the mailer takes processing certificates",
457+
Name: "processing_latency",
458+
Help: "Time the mailer takes processing certificates in seconds",
459+
Buckets: []float64{1, 15, 30, 60, 75, 90, 120},
459460
})
460461
stats.MustRegister(processingLatency)
461462

0 commit comments

Comments
 (0)