You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the protobuf protocol definition for prometheus metrics the Infinity bucket can be optional, this is most likely because its value should be allways the same as histogram sample count, so it can be calculated.
The text exposition format does not make the bucket optional, so simply parsing, passing along and then writing to text format of the same metrics does not work and breaks histograms.
Telegraf should ensure that the infinity bucket is allways present on input, creating it from sample count if necesary.
The text was updated successfully, but these errors were encountered:
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.24, Ubuntu 18.04
Docker
No response
Steps to reproduce
Expected behavior
Collected histogram metrics will work as proper histogram when ingested by Prometheus.
Actual behavior
Collected histogram metric do not have le=+Inf bucket which is required for Prometheus to properly use histogram and histogram_quantile function
Additional info
Exposed metrics in text exposition format:
Collected metrics in influxdb format:
According to the protobuf protocol definition for prometheus metrics the Infinity bucket can be optional, this is most likely because its value should be allways the same as histogram sample count, so it can be calculated.
The text exposition format does not make the bucket optional, so simply parsing, passing along and then writing to text format of the same metrics does not work and breaks histograms.
Telegraf should ensure that the infinity bucket is allways present on input, creating it from sample count if necesary.
The text was updated successfully, but these errors were encountered: