Bug 61123 - Influx measurement name
Summary: Influx measurement name
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 3.2
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2017-05-24 21:10 UTC by Brahma
Modified: 2017-09-16 18:18 UTC (History)
2 users (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Brahma 2017-05-24 21:10:57 UTC
With the Graphite backend listener we were using in JMeter the following property:
- rootMetricsPrefix = $PE_ID$
This would have resulted in measurement names of, say PE-1114.samplername.a.ok. There would be many measurements in the influxdb for each test. This allowed us to use Grafana, parse out the samplername (using "Alias By = $1) and use that for the legend labels in the plots.

We are switching to influx backend listener because it allows us to use tags and some other features. In the JMeter backend listener interface we use:
- measurement= $PE_ID$
This would result in a single measurement in influxdb called PE-1114. Then all of the data for all of the samplers in the JMX file get pushed into this measurement in a very organized fashion. However, when we are trying to plot, say, pct90 metric, for multiple samplers in Grafana, I have not found an easy way to display the sampler names in the legend of the plot.

We tried to put the sampler name as a variable in the measurement property of the JMeter backend listener even though we knew that was not going to work. Whichever sampler is the last one in the JMX file, the measurement name gets set to a value based on that.

The botomline is, we would like to get the samplername (which is a hierarchical name with fields separated by a period), parse it to get the last field and use it for the legend in the plot. Do you see this as a possibility with the latest versions of JMeter and Grafana or with any tricks we can do?

The other thing is, it would be nice to see a working example of a JMeter test that uses at least two samplers and Grafana display of the statistics. This would iron out any issues with the end-to-end usage of the influx backend listener and/or provide the users with a great starting point.