datadog-probe
Datadog APM probe allows you to query Datadog metrics or run Synthetic tests and compare the results against specified criteria.
When to use
- Monitor Datadog metrics (e.g.,
system.cpu.user,trace.servlet.request.duration) as steady-state indicators during chaos - Use Datadog Synthetic tests to validate end-to-end user flows under failure conditions
- Validate that Datadog-monitored SLOs remain within acceptable thresholds during fault injection
Prerequisites
- An active Datadog account
- Access to the Datadog API from the Kubernetes execution plane
- A Datadog API key and Application key for authentication
Steps to configure
-
Navigate to Project Settings > Chaos Probes and click New Probe
-
Select the APM Probe
-
Provide the name of the probe and select Datadog under APM Type

-
Under Variables, define any reusable values you want to reference in probe properties or run properties. For each variable, specify the type (
StringorNumber), name, value (fixed or runtime input), and whether it's required at runtime. -
Under Datadog connector, click on Select a Connector
-
In Connector settings, you can either choose an existing connector or click + New Connector
-
Provide the connector details:
- Name: Enter a name for your Datadog connector
- Description (optional): Add a description for the connector
- Tags (optional): Add tags for better organization
-
Configure the Datadog connector credentials:
- URL: Enter your Datadog instance URL
- Encrypted Application Key: Click on Create or Select a Secret to provide your Datadog Application key
- For more details, refer to Datadog Application Keys documentation
- Encrypted API Key: Click on Create or Select a Secret to provide your Datadog API key
- For more details, refer to Datadog API Keys documentation

-
Click Next to proceed to Delegates Setup. Select the delegate this connector will use:
- Use any available Delegate: Harness will use any available delegate
- Only use Delegates with all of the following tags: Select a specific delegate by tag

-
Click Save and Continue to verify the connection, then click Finish
-
Once the connector is created and selected, click on Configure Details
-
Under Probe Properties, select the query mode and provide the required parameters:
-
Metrics mode:
-
Datadog Query: Enter your Datadog metrics query
- Example:
avg:system.cpu.user{host:my-host} - For more details, refer to Datadog Metrics documentation
- Example:
-
Lookback Window (in minutes): Specify the time range in minutes to look back for metrics

-
-
Synthetic Test mode:
-
Provide the Synthetic test details to evaluate the probe outcome based on test results
-
For more details, refer to Datadog Synthetics documentation

-
-
-
Under Datadog Data Comparison, provide the comparison criteria:
- Type: Select the data type for comparison (e.g., Float)
- Comparison Criteria: Select the comparison operator (e.g.,
>=,<=,==,!=,>,<) - Value: Enter the expected value to compare against the metric result
-
Click Configure Properties to proceed to Associated Risks. Optionally associate one or more resilience risks with this probe, then click Next
-
Provide the Run Properties:
- Timeout: Set the timeout duration for the probe execution (e.g., 10s)
- Interval: Set the interval between probe executions (e.g., 2s)
- Attempt: Number of attempts for the probe (e.g., 1)
- Polling Interval: Time between successive probe polls (e.g., 30s)
- Initial Delay: Delay before the first probe execution (e.g., 5s)
- Verbosity: Set the verbosity level for probe logs
- Stop On Failure (Optional): Toggle to stop the experiment if the probe fails

-
Then click on Create Probe