Add the _bucket suffix to metric lines for histograms

This commit is contained in:
Christopher Baines 2020-12-10 09:52:06 +00:00
parent 9d39235cc8
commit 0b22a8760c

View file

@ -459,7 +459,7 @@ so that it can receive and store the metric values."
(hash-for-each (hash-for-each
(lambda (label-values value) (lambda (label-values value)
(for-each (lambda (index bucket) (for-each (lambda (index bucket)
(write-line full-name (write-line (string-append full-name "_bucket")
`(,@label-values `(,@label-values
(le . ,(if (inf? bucket) (le . ,(if (inf? bucket)
"+Inf" "+Inf"