public class DatadogBackendListener extends DslBackendListener<DatadogBackendListener>
| Modifier and Type | Class and Description |
|---|---|
static class |
DatadogBackendListener.CodeBuilder |
static class |
DatadogBackendListener.DatadogSite |
DslBackendListener.BackendListenerCodeBuilder| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEY_ARG |
static String |
API_URL_ARG |
protected String |
apiKey |
protected String |
apiUrl |
static String |
LOG_URL_ARG |
protected String |
logsUrl |
static String |
RESULT_LOGS_ARG |
protected boolean |
resultsAsLogs |
protected String[] |
tags |
static String |
TAGS_ARG |
listenerClass, queueSize, urlguiClass, name| Constructor and Description |
|---|
DatadogBackendListener(String apiKey) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.config.Arguments |
buildListenerArguments() |
static DatadogBackendListener |
datadogListener(String apiKey)
Creates a new DataDog Backend listener posting sample result metrics to DataDog for easy
reporting and analysis.
|
DatadogBackendListener |
resultsLogs(boolean enabled)
Allows to enable/disable sending sample results as logs to DataDog.
|
DatadogBackendListener |
site(DatadogBackendListener.DatadogSite site)
Allows selecting the site of your DataDog instance to use proper URLs for such site.
|
DatadogBackendListener |
tags(String... tags)
Allows to specify tags to add to every metric sent to DataDog.
|
buildTestElement, queueSizebuildConfiguredTestElement, buildTestElementGui, buildTreeUnder, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuipublic static final String API_KEY_ARG
public static final String API_URL_ARG
public static final String LOG_URL_ARG
public static final String RESULT_LOGS_ARG
public static final String TAGS_ARG
protected final String apiKey
protected String apiUrl
protected String logsUrl
protected boolean resultsAsLogs
protected String[] tags
public DatadogBackendListener(String apiKey)
public static DatadogBackendListener datadogListener(String apiKey)
apiKey - specifies the DataDog api key. To create one just go to your organization
api keys settings.public DatadogBackendListener site(DatadogBackendListener.DatadogSite site)
site - specifies the site to use. When no site is specified, US1 is used by default.public DatadogBackendListener resultsLogs(boolean enabled)
It is useful to enable sample results as logs to be able to get all the information of every request in DataDog. But, enabling them incurs in additional DataDog usage (cost) and network traffic. So, only enable them when you actually need them (eg: tracing issues, or you need detail of each request).
enabled - specifies to enable logging of sample results to DataDog when true. By default,
results logs are not sent to DataDog.public DatadogBackendListener tags(String... tags)
This is useful in scenarios where you need to add additional metadata to the metric for later on filtering, grouping and comparison in DataDog. You can check more information here.
tags - specifies the tags to add to every metric.protected org.apache.jmeter.config.Arguments buildListenerArguments()
buildListenerArguments in class DslBackendListener<DatadogBackendListener>Copyright © 2023. All rights reserved.