johrstrom / jmeter-prometheus-plugin

A Prometheus Listener for Apache JMeter that exposes results in an http API
Apache License 2.0
164 stars 109 forks source link

Histogram type allows only one set of Buckets or Quantiles for all the prometheus listeners #126

Closed AntonNaumovski closed 12 months ago

AntonNaumovski commented 1 year ago

When using the Histogram Type, only one unique set of defined Buckets or Quantiles is accepted for all the prometheus listeners in a test plan. For ex: if you have Prometheus listener and Histogram configured to measure ResponseTime with Buckets: 100,500,1000,3000,4000 and create another listener on a different request in the thread with different set of buckets, the former one will be omitted from the prometheus formatted output.

Plugin version 0.6.2 is being used..

AntonNaumovski commented 1 year ago

Found it myself: if different sets of buckets are used, the metric_name i.e Name in the listener should be different.

johrstrom commented 12 months ago

Thanks for the ticket! Yes metric_name has to be unique across listeners because there's a global Prometheus thing we're registering the histogram with.