-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing histogram measurements in Prometheus Remote Write Spec #14890
Comments
It looks like the request read by the parser is of type next steps: extend the prometheusremotewrite parser to loop through the That would look something like the following: prometheus_remote_write,... metric_name_sum=1
prometheus_remote_write,... metric_name_count=1
prometheus_remote_write,...quantile=1 metric_name=1
... But we need to consider how the quantiles fit into his. |
It looks like there are a couple different methods to draw the info from and I was hoping to come up with a test case I could ensure this is working. I have put up #14907 which will print out any histograms to stdout. Would you be willing to grab that and collect some data for me? Artifacts that you can use will be attached to the PR in 20-30mins. Thanks! |
Hi @powersj thanks for the PR artifacts, I tested them got the debug logs as follows, |
Thanks for this! that helps a lot. I wasn't sure what fields are used given the variety of spans and deltas. I can look at creating a test case and can start working on a PR. |
@Neles786 there are some new artifacts on #14952. I think this is a start, but I'm not 100% certain if I have the ranges for the buckets correct. Let me know what you think! If you do think something is not quite right, I've printed out the ranges to stdout, that might help me or you point out what should be taking place. Thanks! |
Hi @powersj the metric names, tags are missing, |
Are you basing that out the print line format above? That was only printing the buckets and values. If you use the outputs.file output do you see metrics? Thanks! |
It was a configuration mistake from my side, all metrics are there, just a suggestion need the metric name also in the debug for the ranges, otherwise following them will be difficult |
One more thing, technically all histogram metrics should be of cumulative frequency, right now metric values are in non cumulative, only this change is required |
Good catch! I've pushed an update and new artifacts should be available in 20-30mins. Thanks again! |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.28.3, macOS sonoma v14.3.1
Docker
No response
Steps to reproduce
K6_PROMETHEUS_RW_SERVER_URL=http://localhost:1234/receive \ K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true \ k6 run -o experimental-prometheus-rw script.js -i 100
(for example used 100 iterations)Expected behavior
The output should have included all the native histogram metrics as described here
Actual behavior
The measurements in the telegraf stdout are only of type counter and rate, to be precise 6 different measurements devoid of histogram measurements. For multiple vus, two more measurements k6_vus and k6_vus_max are recieved.
Additional info
Ref. Link for telegraf config
The text was updated successfully, but these errors were encountered: