Search code examples
jmeterinfluxdb

Jmeter- backend listner influxdb


I am running using jmeter 2.13 created test plan with thread group and backend listner.backend listner jmeter

up docker image for influxdb ( tutum/influxdb). I am able to access influxdb dashboard.

I made changes in /config/config.toml. added following in config.toml

[[graphite]]
enabled = true
bind-address = ":8086"
protocol = "tcp"
consistency-level = "one"
separator = "."
database = "jmeter"

I am not able to get data within jmeter database in influxdb after I run jmeter test cases. Jmeter generates report with 200 code. Please help to resolve this issue.


Solution

  • I used windows solution but I think it Should be similar.

    1. Install InfluxDB with a new conf file. I did a copy of the default and overwrite the below properties algon with [data] path.In my case was as below

    [data] enabled = true dir = "C:\\software\\influxdb-1.0.2-1\\data" wal-dir = "C:\\software\\influxdb-1.0.2-1\\data\\wa

    And run inflix with this configuration. $influxd -config <path to file.conf>.

    This file has the graphite listener opened and linkened to DB

    [[graphite]] 
    enabled = true 
    database = "jmeter" 
    bind-address = ":2003"
    #protocol = "tcp"
    # consistency-level = "one"
    

    Later activate the security because Grafana needs it. I suposse you want to see graphs.

    [http]
    enabled = true
    bind-address = ":8086"
    auth-enabled = true
    
    1. Run Influx and using the browser add databases jmeter,grafana. Do not forget to add one administrative user. You can use QueryTemplate for these tasks. So 3 steps create two databases and at least one user with password.
    2. Ensure Jmeter have Assertions to distinguish retult of the test and backednListender