apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.27k stars 2.09k forks source link

Send data to influxDB failed when measurement is replaced by Property or Variable #5505

Open asfimport opened 3 years ago

asfimport commented 3 years ago

Markowski_JM (Bug 65164): Hi,

I found a bug when JMeter send data to InfluxDB. I use this configuration in the simple scenario

influxdbMetricsSender org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender influxdbUrl http://${__P(InfluxDB_HostName,)}:${__P(InfluxDB_HostPort,)}/write?db=TEST application TEST_PLAN measurement ${P(Name,)} summaryOnly false samplersRegex (^\d+).+ percentiles 99;95;90 testTitle ${P(InfluxDB_TestTitle,)} eventTags

JMETER IN GUI MODE The scenario run correctly and I found data in db TEST

JMETER NO GUI MODE I have a problem only with parameter measurement measurement ${__P(Name,)}

The parameters : influxdbUrl with this values is correct (GUI / NO GUI) http://${__P(InfluxDB_HostName,)}:${__P(InfluxDB_HostPort,)}/write?db=TEST

testTitle with this values is correct (GUI / NO GUI) ${__P(InfluxDB_TestTitle,)}

application with this values is correct (GUI / NO GUI) TEST_PLAN (or parameter or value)

BUT,

I try to use measurement with ${__P(Name,)} and ${Name_1} : NOT OK in non gui

2021-03-02 17:30:10,520 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/write?db=TEST, responseCode: 400, responseBody: {"error":"partial write: unable to parse ',application=TEST_PLAN,transaction=internal minAT=0,maxAT=0,meanAT=0,startedT=0,endedT=0 1614702610451000000': missing measurement dropped=0"}

In conclusion, it's impossible to execute a scenario in non gui mode with parameter measurement replaced by a Property from Backend Listener.

Severity: normal OS: All

asfimport commented 3 years ago

Markowski_JM (migrated from Bugzilla): In this situation I use a scenario JMeter for Application Performance Monitoring

The same scenario is used in different site and I try to use in the same Influx_DB all data from different Site and different application.

In Backend Listener, the parameter application with property value run correctly. For parameter measurement i try to use the other property for the Sitre where th scenario is executed.

Thanks