JMeter, InfluxDB and Grafana
Integration
Grafana:
Grafana is a multi-platform open source analytics and interactive visualization web application. It
provides charts, graphs, and alerts for the web when connected to supported data sources. A
licensed Grafana Enterprise version with additional capabilities is also available as a self-hosted
installation or an account on the Grafana Labs cloud service. It is expandable through a plug-in
system. End users can create complex monitoring dashboards using interactive query builders.
Grafana is divided into a front end and back end, written in TypeScript and Go, respectively.
Influx DB:
InfluxDB is an open-source time series database (TSDB) developed by the company Influx
Data. It is written in the Go programming language for storage and retrieval of time series data in
fields such as operations monitoring, application metrics, Internet of Things sensor data, and
real-time analytics.
Steps to integrate InfluxDB and Grafana with JMeter:
1. Download InfluxDB
Reference Link: https://www.influxdata.com/get-influxdb/
Open InfluxDB
2. Then click on Influxd
3. Now InfluxDB has been started
4. Now open Influx.
5. Type CREATE database test123 --->Enter
6. To confirm database is created or not type SHOW databases --->Enter
7. Type CREATE user arjun with password ‘test@123’ --->Enter
8. Develop Sample JMeter Script.
9. Add Backend Listener
10. Select org.apache.jmeter.visualizers.backend.InfluxdbBackendListenerClient from backend
Listener implementation drop down.
11. Change influxdb Url to http://host_to_change:8086/write?db=jmeter in JMeter.
12. Download Grafana, Reference link: https://grafana.com/grafana/download?
platform=windows
13. Start Grafana Server Grafana-->Bin-->Start server
14. Now Grafana is running and type localhost:3000 in chrome then Grafana UI opens.
15. Provide username and password is admin by default.
Grafana Dashboard:
16. Configure the Data Source in Grafana.
17. Click on Add data source and Select InfluxDB data source.
18. Change URL to http://localhost:8086
19. Provide database name as created in influx
20. Provide user and password as created in influx
21. Select HTTP method to GET
22. Click Save & test
23. Now Influx database has been configured
24. Now select create--.>Import
25. Type 1152 in import via grafana.com and load
26. Execute the test in Non-GUI mode.
27. Monitor the metrics in Grafana.
Metric Dashboard: