Search code examples
jmeterinfluxdbjmeter-pluginslisteners

How to push jmeter results to influx multiple databases using back end listeners?


I want to push JMeter results data to the influx. I am able to push results to a database that is fine. But now I want to push result data of first sampler result to one database and second sampler result to another database.

To do this I tried using multiple backend listeners for each sampler. But the all sampler results data will be pushed to the same database which is configured in the first backend listeners.

Can we use multiple backend listeners for multiple configuration. or if we can't then why? I am usinginfluxdbBackend.listenerClient

enter image description here


Solution

  • According to JMeter Documentation

    By default JMeter sends metrics for all samplers accumulated under the samplerName "all". If the Backend Listener samplersList is configured, then JMeter also sends the metrics for the matching sample names unless summaryOnly=true

    So if you add 2 Backend Listener instances and configure them like:

    • summaryOnly: false
    • samplersList: Sampler1 for first, Sampler2 for second
    • different graphineHost and/or graphitePort values

      JMeter Backend Listener