Bug 65164 - Send data to influxDB failed when measurement is replaced by Property or Variable
Summary: Send data to influxDB failed when measurement is replaced by Property or Vari...
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.3
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER 5.4.1
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-03 07:55 UTC by Markowski_JM
Modified: 2021-03-03 08:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markowski_JM 2021-03-03 07:55:09 UTC
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.
Comment 1 Markowski_JM 2021-03-03 08:01:35 UTC
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