Complete Setup Guide for JMeter + InfluxDB + Grafana

This guide explains how to set up a performance testing visualization pipeline using JMeter, InfluxDB, and Grafana.

🚀 Step 1: Install InfluxDB OSS 1.11.8

Windows Installation

cd C:\\influxdb
influxd.exe

This starts the InfluxDB server (default port: 8086)

Linux Installation

wget <https://dl.influxdata.com/influxdb/releases/influxdb-1.11.8_linux_amd64.tar.gz>
tar xvfz influxdb-1.11.8_linux_amd64.tar.gz
cd influxdb-1.11.8-1
./influxd

🚀 Step 2: Create Database for JMeter

  • Open another terminal and run the CLI:
influx
  • Create DB:
CREATE DATABASE jmeter
SHOW DATABASES;

You should see jmeter listed.

🚀 Step 3: Configure JMeter Backend Listener

  • Open JMeter test plan
  • Add → Listener → Backend Listener
  • Select Backend Listener implementationorg.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient
  • Add the following Parameters:
Name Value
influxdbMetricsSender org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender
influxdbUrl http://localhost:8086/write
influxdbDatabase jmeter
influxdbRetentionPolicy autogen
application JMeterTest
measurement jmeter
summaryOnly false
samplersRegex .*
percentiles 90;95;99

💡 localhost:8086 works if JMeter and InfluxDB are on the same machine.

🚀 Step 4: Install & Configure Grafana

🚀 Step 5: Import Ready-Made JMeter Dashboards

Grafana has public dashboards for JMeter + InfluxDB 1.x:

  • ID 5496 → JMeter Dashboard for InfluxDB
  • ID 1152 → Another JMeter Performance Dashboard

Steps:

  • In Grafana → Dashboards → Import
  • Enter ID (5496 or 1152) and click Load
  • Select the InfluxDB datasource you created
  • Run your JMeter test → see real-time charts

<aside>

✅ At this point you'll have:

  • JMeter sending metrics → InfluxDB 1.11.8
  • Grafana pulling metrics → Live dashboards </aside>

Content copied from this page[1]

Comments

Popular Posts