Datadog Backend Listener for Apache JMeter is an open source JMeter plugin used to send test results to the Datadog platform. It provides real-time reporting of test metrics like latency, the number of bytes sent and received, and more. You can also send to Datadog complete test results as log entries.
The Datadog Backend Listener plugin needs to be installed manually. See the latest release and more up-to-date installation instructions on its GitHub repository.
- Download the Datadog plugin JAR file from the release page
- Place the JAR in the
lib/ext
directory within your JMeter installation. - Launch JMeter (or quit and re-open the application).
- If not already configured, download the JMeter Plugins Manager JAR.
- Once you've completed the download, place the
.jar
in thelib/ext
directory within your JMeter installation. - Launch JMeter (or quit and re-open the application).
- Go to
Options > Plugins Manager > Available Plugins
. - Search for "Datadog Backend Listener".
- Click the checbox next to the Datadog Backend Listener plugin.
- Click "Apply Changes and Restart JMeter".
To start reporting metrics to Datadog:
- Right click on the thread group or the test plan for which you want to send metrics to Datadog.
- Go to
Add > Listener > Backend Listener
. - Modify the
Backend Listener Implementation
and selectorg.datadog.jmeter.plugins.DatadogBackendClient
from the drop-down. - Set the
apiKey
variable to your Datadog API key. - Run your test and validate that metrics have appeared in Datadog.
The plugin has the following configuration options:
Name | Required | Default value | description |
---|---|---|---|
apiKey | true | NA | Your Datadog API key. |
datadogUrl | false | https://api.datadoghq.com/api/ | You can configure a different endpoint, for instance https://api.datadoghq.eu/api/ if your datadog instance is in the EU |
logIntakeUrl | false | https://http-intake.logs.datadoghq.com/v1/input/ | You can configure a different endpoint, for instance https://http-intake.logs.datadoghq.eu/v1/input/ if your datadog instance is in the EU. |
metricsMaxBatchSize | false | 200 | Metrics are submitted every 10 seconds in batches of size metricsMaxBatchSize . |
logsBatchSize | false | 500 | Logs are submitted in batches of size logsBatchSize as soon as this size is reached. |
sendResultsAsLogs | false | false | By default only metrics are reported to Datadog. To report individual test results as log events, set this field to true . |
includeSubresults | false | false | A subresult is for instance when an individual HTTP request has to follow redirects. By default subresults are ignored. |
excludeLogsResponseCodeRegex | false | "" |
Setting sendResultsAsLogs will submit all results as logs to Datadog by default. This option lets you exclude results whose response code matches a given regex. For example, you may set this option to [123][0-5][0-9] to only submit errors. |
samplersRegex | false | .* | An optional regex to filter the samplers to monitor. |
customTags | false | "" |
Comma-separated list of tags to add to every metric |
See metadata.csv for a list of metrics provided by this check.
JMeter does not include any service checks.
JMeter does not include any events.
Need help? Contact Datadog support.
Additional helpful documentation, links, and articles: