grafana / xk6-output-prometheus-remote

k6 extension to output real-time test metrics using Prometheus Remote Write.
GNU Affero General Public License v3.0
156 stars 72 forks source link

histogram_sum usage in vicotria metrics #125

Closed guy-frontegg closed 1 year ago

guy-frontegg commented 1 year ago

Hello All,

You are doing a great job, thank you.

We are pushing the results as Prometheus remote write into VictoriaMetrics. Yet when trying to use the dashboard (K6 Official Test result) it uses the experimental histogram_sum that VM does not support. What can we use differently to work with the dashboard?

Thank you

codebien commented 1 year ago

Hi @guy-frontegg, VictoriaMetrics doesn't support yet the Native Histogram feature.

The k6 open-source dashboard requires the Native Histogram feature to be enabled and supported which means it will mostly work only with Prometheus and Mimir at the moment (they should still be the unique implementations that support the Native Histogram).

For using another Prometheus remote write implementation, use the classic histogram (the default option in this extension), and rewrite the panels' query to make them compatible.

guy-frontegg commented 1 year ago

Thank you @codebien,

This is very informative and for all the links.

I have to ask for help one last time, but only if it's possible. Because could not find a lot of material on histogram_sum functionality, and what the calculation suppose to do.

What can I replace it with? sum(histogram)) ?

codebien commented 1 year ago

Hi @guy-frontegg,

What can I replace it with? sum(histogram)) ?

If you meant in Victoria Metrics, I don't expect an equivalent function because the engine does not yet support the Native Histogram feature.

You can probably use the Trend conversion by Counter&Gauges but that means you've to use a custom dashboard rewriting most of the metrics for latencies.

I will close this issue as this is for the tracking features and bugs for the output and there isn't much we can do for this specific issue here. You may consider opening a topic in the Forum or probably better on Victoria Metrics / Prometheus communities to get feedback on writing specific queries.