Configure buckets for the expiration-mailer processing_latency metric (#5797)

This commit is contained in:
Phil Porada 2021-11-16 20:36:21 -05:00 committed by GitHub
parent b7989d0b5d
commit a30065edeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -447,15 +447,16 @@ func initStats(stats prometheus.Registerer) mailerStats {
sendLatency := prometheus.NewHistogram(
prometheus.HistogramOpts{
Name: "send_latency",
Help: "Time the mailer takes sending messages",
Help: "Time the mailer takes sending messages in seconds",
Buckets: metrics.InternetFacingBuckets,
})
stats.MustRegister(sendLatency)
processingLatency := prometheus.NewHistogram(
prometheus.HistogramOpts{
Name: "processing_latency",
Help: "Time the mailer takes processing certificates",
Name: "processing_latency",
Help: "Time the mailer takes processing certificates in seconds",
Buckets: []float64{1, 15, 30, 60, 75, 90, 120},
})
stats.MustRegister(processingLatency)