Hi,
I’m trying to configure telegraf to scrape prometheus input and output to influxdb.
The problem I see is that histograms from prometheus are sent as-is to influx. This causes Influx to contain metric “something_latency” with multiple fields describing counts per histogram bucket. The line sent to influx looks like this:
something_latency,environment=staging,via=telegraf 0.5=51907,10=51909,0.25=51872,count=51909,0.025=33143,sum=1250.5342124830183,0.01=17427,5=51909,0.005=19,0.05=46594,0.1=51497,1=51909,2.5=51909 1529948620000000000
But I don’t care about counts, I care about 99th percentile. In prometheus I can calculate this with histogram_quantile function. But in influx?
My questions:
- is there an easy way to reproduce histogram_quantile in influx?
- or maybe there is a way to make telegraf calculate proper quantiles and sent them to influx?
Thanks!