Skip to content

Commit 6f46a99

Browse files
Chostakovitchsirainen
authored andcommitted
Explicit us→s conversion for OpenMetrics
1 parent 505d56c commit 6f46a99

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

docs/core/config/statistics.md

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ Quantized sub-metrics are exported as histograms.
385385
Histograms are exported as `dovecot_<metric_name>_bucket` with corresponding
386386
labels. Each histogram will have an automatically generated `_sum`
387387
(specifying sum of all values in quantiles) and `_count` (total number
388-
of samples in the quantiles) metrics.
388+
of samples in the quantiles) metrics.
389+
390+
Durations, including histogram ranges, are converted to seconds.
389391

390392
Dovecot will also export version information and startup time as special
391393
metrics even if nothing is configured. These are called `dovecot_build_info`
@@ -492,53 +494,53 @@ dovecot_imap_command_duration_seconds_total{cmd_name="EXPUNGE",tagged_reply_stat
492494
dovecot_imap_command_duration_seconds_sum 2.719657
493495
# HELP dovecot_smtp_command Histogram
494496
# TYPE dovecot_smtp_command histogram
495-
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="10"} 0
496-
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="100"} 1
497-
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="1000"} 1
498-
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="10000"} 1
499-
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="100000"} 1
497+
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.000010"} 0
498+
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.000100"} 1
499+
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.001000"} 1
500+
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.010000"} 1
501+
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.100000"} 1
500502
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="+Inf"} 1
501503
dovecot_smtp_command_sum{cmd_name="LHLO",status_code="250"} 0.000020
502504
dovecot_smtp_command_count{cmd_name="LHLO",status_code="250"} 1
503-
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="10"} 0
504-
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="100"} 1
505-
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="1000"} 1
506-
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="10000"} 1
507-
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="100000"} 1
505+
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.000010"} 0
506+
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.000100"} 1
507+
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.001000"} 1
508+
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.010000"} 1
509+
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.100000"} 1
508510
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="+Inf"} 1
509511
dovecot_smtp_command_sum{cmd_name="MAIL",status_code="250"} 0.000021
510512
dovecot_smtp_command_count{cmd_name="MAIL",status_code="250"} 1
511-
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="10"} 0
512-
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="100"} 0
513-
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="1000"} 1
514-
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="10000"} 1
515-
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="100000"} 1
513+
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="0.000010"} 0
514+
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="0.000100"} 0
515+
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="0.001000"} 1
516+
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="0.010000"} 1
517+
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="0.100000"} 1
516518
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="+Inf"} 1
517519
dovecot_smtp_command_sum{cmd_name="RCPT",status_code="250"} 0.000195
518520
dovecot_smtp_command_count{cmd_name="RCPT",status_code="250"} 1
519-
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="10"} 0
520-
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="100"} 0
521-
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="1000"} 0
522-
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="10000"} 1
523-
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="100000"} 1
521+
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="0.000010"} 0
522+
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="0.000100"} 0
523+
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="0.001000"} 0
524+
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="0.010000"} 1
525+
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="0.100000"} 1
524526
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="+Inf"} 1
525527
dovecot_smtp_command_sum{cmd_name="DATA",status_code="250"} 0.001249
526528
dovecot_smtp_command_count{cmd_name="DATA",status_code="250"} 1
527-
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="10"} 1
528-
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="100"} 1
529-
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="1000"} 1
530-
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="10000"} 1
531-
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="100000"} 1
529+
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.000010"} 1
530+
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.000100"} 1
531+
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.001000"} 1
532+
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.010000"} 1
533+
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.100000"} 1
532534
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="+Inf"} 1
533535
dovecot_smtp_command_sum{cmd_name="QUIT",status_code="221"} 0.000010
534536
dovecot_smtp_command_count{cmd_name="QUIT",status_code="221"} 1
535537
# HELP dovecot_mail_delivery Histogram
536538
# TYPE dovecot_mail_delivery histogram
537-
dovecot_mail_delivery_bucket{le="10"} 0
538-
dovecot_mail_delivery_bucket{le="100"} 0
539-
dovecot_mail_delivery_bucket{le="1000"} 1
540-
dovecot_mail_delivery_bucket{le="10000"} 1
541-
dovecot_mail_delivery_bucket{le="100000"} 1
539+
dovecot_mail_delivery_bucket{le="0.000010"} 0
540+
dovecot_mail_delivery_bucket{le="0.000100"} 0
541+
dovecot_mail_delivery_bucket{le="0.001000"} 1
542+
dovecot_mail_delivery_bucket{le="0.010000"} 1
543+
dovecot_mail_delivery_bucket{le="0.100000"} 1
542544
dovecot_mail_delivery_bucket{le="+Inf"} 1
543545
dovecot_mail_delivery_sum 0.000656
544546
dovecot_mail_delivery_count 1

0 commit comments

Comments
 (0)