JMeter Integration with InfluxDB Cloud

In last two blog articles, we have seen about the JMeter Integration with InfluxDB and Grafana using Docker and InfluxDB 2.0. This blog article focuses on JMeter Integration with InfluxDB Cloud.

InfluxDB Cloud

InfluxDB Cloud is the most powerful time series database as a service — free to start, easy to use, fast, serverless, elastic scalability.

It is free to get started; no credit card required. Head to this sign up link.

Fill the required fields as shown below and hit Create Account.

JMeter Integration with InfluxDB Cloud
JMeter Integration with InfluxDB Cloud – Sign up

Create a bucket

Next step is to create a bucket called jmeter in InfluxDB Cloud. Navigate to Data > Buckets > Create Bucket. Enter a name for the bucket jmeter.

Create a Bucket
Create a Bucket

Free plan comes with rate limitations and other features as shown below.

InfluxDB Pricing
InfluxDB Pricing

Before leaving InfluxDB Cloud, we need few things to configure the backend listener in JMeter.

  • Token
  • Organization ID
  • InfluxDB URL

Create a Token

Navigate to Data > Token, click on Generate > Read/Write Token.

Generate a Token
Generate a Token

Enter the token name, select the scope and then click on Save.

Scoping the token
Scoping the token

Click on the token name and then click on Copy to Clipboard.

Copy the Token
Copy the Token

To retrieve the Organization ID, click on the Profile icon > About. Then, click on Copy to Clipboard under Organization ID section.

Copy the Organization ID
Copy the Organization ID

To retrieve the URL, just copy the domain name from the browser address bar. E.g. https://us-west-2-1.aws.cloud2.influxdata.com/

JMeter Set up

Launch JMeter, open the test plan which you are going to execute. Add a backend listener by right clicking on Thread Group > Add > Listener > Backend Listener.

Select InfluxDBBackendListener Client as the implementation.

Add a property influxdbToken and paste the token which you created in InfluxDB Cloud.

In influxdbUrl, value of the format would be https://<influxdb_cloud_domain>/api/v2/write?org=<organization_id>&bucket=<bucket_name>. Paste the domain name, orgranization ID and the bucket name.

Below is for your reference.

JMeter Configuration
JMeter Configuration

Save the test plan. Run your test in CLI mode. While the test is running, navigate to InfluxDB Cloud > Explore. Submit the query as shown below. You will see the runtime performance stats in the InfluxDB Cloud.

Runtime Stats in InfluxDB Cloud
Runtime Stats in InfluxDB Cloud

Grafana and InfluxDB Cloud Integration

If you would like to integrate your InfluxDB Cloud with Grafana, you can do it. Launch Grafana, go to Configuration > Data Sources > Add data source. Select InfluxDB and configure the details as shown below. Click on Save & Test.

InfluxDB Cloud and Grafana Integration
InfluxDB Cloud and Grafana Integration

Final Words

Integrating JMeter with InfluxDB Cloud is straightforward and easy. No need to maintain your own instance of InfluxDB servers or running containers. Free tier is also available to test and try out features. I hope this tutorial helps you in learning the integration of InfluxDB and Grafana in JMeter.

About the Author

4 thoughts on “JMeter Integration with InfluxDB Cloud”

  1. We have done that in our product but the disk utilisation will be too much for this. Do you have any insights how to compress it like taking a snapshot and clear the data on a daily basis.

    Reply
  2. Hi Naveen,
    Can you please send me grafana dashboard ID you tested with these settings. I am using grafana cloud free trier and tried all JMeter dashboards and all are giving error.
    I would really appreciate if you could help me fix the same. thanks.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Hamster - Launch JMeter Recent Test Plans SwiftlyDownload for free
+
Share via
Copy link