Reputation: 2823
I was trying to interate Jmeter, influxDB and Grafana to see the test results.
I am running docker containers with below versions
INFLUXDB_VERSION=2.1.1
Grafana v8.5.0
Jmeter 5.4.1
After I create the data source in Grafana I can see one jmeter bucket which I created in InfluxDB. However the measurement
i setup in Jmeter Backend Listener cannot see in the inFluxDB
I believe due to this reason I can't see any query result Grafana explore as below
Upvotes: 0
Views: 947
Reputation: 2823
The reason for this is due to missing jmeter-plugin-influxdb2-listener-<>.jar
plugin. Becuse influxdb version 2.0 or above needs this Jmeter plugin.
https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin.
Backend Listener : org.md.jmeter.influxdb2.visualizer.JMeterInfluxDBBackendListenerClient.
Here is the Grafana dashboard that can be used : https://grafana.com/grafana/dashboards/13644
Upvotes: 1
Reputation: 168147
If you're running docker containers then I strongly doubt your InfluxDB URL of http://localhost:8086
is correct, you will have to use the container with InfluxDB IP address both in JMeter and in Grafana.
The IP address of the InfluxDB instance can be obtained using docker inspect
command
Check jmeter.log file for any suspicious entries, you may also want to increase JMeter's logging verbosity for the Backend Listener implemenations by adding the next line to log4j2.xml file:
<Logger name="org.apache.jmeter.visualizers.backend" level="error" />
this way you will get more information regarding what's going on under the hood.
You may also find JMeter Integration with InfluxDB 2.0 guide useful.
Also be aware of JMeter InfluxDB v2.0 listener plugin where you can see useful queries snippets.
Upvotes: 1