public class InfluxDbBackendListener extends DslBackendListener<InfluxDbBackendListener>
| Modifier and Type | Class and Description |
|---|---|
static class |
InfluxDbBackendListener.CodeBuilder |
DslBackendListener.BackendListenerCodeBuilder| Modifier and Type | Field and Description |
|---|---|
protected String |
applicationName |
protected String |
measurement |
protected String |
percentiles |
protected String |
samplersRegex |
protected Map<String,String> |
tags |
protected String |
title |
protected String |
token |
listenerClass, queueSize, urlguiClass, name| Constructor and Description |
|---|
InfluxDbBackendListener(String url) |
| Modifier and Type | Method and Description |
|---|---|
InfluxDbBackendListener |
application(String applicationName)
Allows specifying an application name tag to be included with collected metrics.
|
protected org.apache.jmeter.config.Arguments |
buildListenerArguments() |
InfluxDbBackendListener |
measurement(String measurement)
Allows specifying the name of the measurement that contains collected metrics sent to
InfluxDB.
|
InfluxDbBackendListener |
percentiles(float... percentiles)
Allows specifying a list of percentiles that will be calculated and sent to InfluxDb.
|
InfluxDbBackendListener |
samplersRegex(String samplersRegex)
Allows specifying a regular expression used to filter collected metrics.
|
InfluxDbBackendListener |
tag(String name,
String value)
Allows adding tags to be included with every measurement sent to InfluxDB.
|
InfluxDbBackendListener |
title(String title)
Allows setting a title for the test which will be included in started and ended annotations in
"events" measurement.
|
InfluxDbBackendListener |
token(String token)
Allows specifying a token for authentication with InfluxDB 2 instances.
|
buildTestElement, queueSizebuildConfiguredTestElement, buildTestElementGui, buildTreeUnder, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuiprotected String title
protected String token
protected String samplersRegex
protected String measurement
protected String applicationName
protected String percentiles
public InfluxDbBackendListener(String url)
public InfluxDbBackendListener token(String token)
Check InfluxDB documentation for more details.
token - to use to authenticate to InfluxDBpublic InfluxDbBackendListener title(String title)
Consider setting this value to something that properly describes your application and the particular test run (some timestamp, some CI/CD build ID, some commit ID, etc.).
When not specified, this will default to "jmeter-java-dsl" plus the current timestamp.
title - to be included in started and ended annotations.public InfluxDbBackendListener application(String applicationName)
This name can later be used to identify tests generated by this application on a given measurement, from other applications.
applicationName - specifies the name of the application tag.public InfluxDbBackendListener measurement(String measurement)
measurement - specifies the name of the measurement.public InfluxDbBackendListener samplersRegex(String samplersRegex)
This regular expression is applied to sample labels, and when matched, collected sample metrics will be sent to InfluxDB. Otherwise, they will be ignored.
For example ^[^_].*" - will exclude samplers which labels start with symbol "_".
samplersRegex - specifies the name of the samplersRegex.public InfluxDbBackendListener tag(String name, String value)
name - specifies the name of the tag. Take into consideration that, in contrast to JMeter
GUI, no TAG_prefix should be included.
value - specifies the value of the tag.public InfluxDbBackendListener percentiles(float... percentiles)
percentiles - specifies a list of percentiles as float values.protected org.apache.jmeter.config.Arguments buildListenerArguments()
buildListenerArguments in class DslBackendListener<InfluxDbBackendListener>Copyright © 2024. All rights reserved.