kamon-prometheus
kamon-prometheus copied to clipboard
Histogram buckets should have _bucket suffix in text format
Hi,
Per https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-details histogram buckets should have the _bucket suffix. This should be fixed at https://github.com/MonsantoCo/kamon-prometheus/blob/420b2a8ba8b8307ad944f2b9eb77306c6ca11bb8/library/src/main/scala/com/monsanto/arch/kamon/prometheus/metric/TextFormat.scala#L22
why didn't you do a PR? you basically found the error, and the solution? it would take you 5 more minutes...
I was just reading through the code to see how it worked and noted this bug, I don't use this library.
Generally I'd recommend switching this to using the standard java client, and only offering a collector in this repository, rather than duplicating effort.
I've pushed pull request #19 which should address this issue. please check