From 9a0c6285aa819d738c0f88ae48ec753b6f13ec50 Mon Sep 17 00:00:00 2001 From: Kelly Date: Fri, 15 May 2020 15:04:05 -0700 Subject: [PATCH] add detail to configure JMeter --- content/v2.0/write-data/_index.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/content/v2.0/write-data/_index.md b/content/v2.0/write-data/_index.md index 0f5809262..58378abd1 100644 --- a/content/v2.0/write-data/_index.md +++ b/content/v2.0/write-data/_index.md @@ -266,7 +266,27 @@ See the _[InfluxDB Persistence Readme](https://github.com/openhab/openhab-addons #### Configure Apache JMeter -See the _[Apache JMeter User's Manual - JMeter configuration](https://jmeter.apache.org/usermanual/realtime-results.html#jmeter-configuration)_ for details. + + +To configure Apache JMeter, complete the following steps in InfluxDB and JMeter. + +##### In InfluxDB + +1. [Find the name of your organization](https://v2.docs.influxdata.com/v2.0/organizations/view-orgs/) (needed to create a bucket and token). +2. [Create a bucket using the influx CLI](https://v2.docs.influxdata.com/v2.0/organizations/buckets/create-bucket/#create-a-bucket-using-the-influx-cli) and name it `jmeter`. +3. [Create a token](https://v2.docs.influxdata.com/v2.0/security/tokens/create-token/). + +##### In JMeter + +1. Create a [Backend Listener](https://jmeter.apache.org/usermanual/component_reference.html#Backend_Listener) using the _InfluxDBBackendListenerClient_ implementation. +2. In the **Backend Listener implementation** field, enter _org.apache.jmeter.visualizers.backend.influxdb.influxdbBackendListenerClient_ +3. Under **Parameters**, specify the following: + - **influxdbMetricsSender**: _org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender_ + - **influxdbUrl**: _http://localhost:9999/api/v2/write?org=my-org&bucket=jmeter_ (include the bucket and org you created in InfluxDB) + - **application**: _InfluxDB2_ + - **influxdbToken**: _my-token_ (include the token you created in InfluxDB) + - Include additional parameters as needed. +4. Click **Add** to add the _InfluxDBBackendListenerClient_ implementation. #### Configure FluentD