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
- Download from official repo: InfluxDB OSS 1.11.8 Windows 64-bit
- Extract the zip, e.g., to
C:\\influxdb
- Open
cmd
or PowerShell, go to folder:
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 implementation →
org.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
- Download Grafana OSS: https://grafana.com/grafana/download
- Start Grafana:
- Default port →
http://localhost:3000
- Default login →
admin / admin
- Add InfluxDB Data Source:
- Type: InfluxDB
- URL:
http://localhost:8086
- Database:
jmeter
- User/Password: leave empty (InfluxDB OSS 1.x has no auth by default)
- Click Save & Test
🚀 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
or1152
) 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
Post a Comment