Private Locations Configuration


Synthetic private locations come with a set of options you can configure to match your environment requirements. All options for the private location worker can be found by running the help command:

docker run --rm datadog/synthetics-private-location-worker --help

Customize your private location

A subset of available parameters are listed below. These configuration options for private locations can be passed as parameters to your JSON configuration file or as arguments in the launch command, for example:

docker run --rm -v $PWD/<MY_WORKER_CONFIG_FILE_NAME>.json:/etc/datadog/synthetics-check-runner.json datadog/synthetics-private-location-worker:latest --logFormat=json

Arguments set in the launch command have precedence over the configuration file. However, these options are not stored and are consequently only relevant for a given launch.

Configuration options

Datadog site configuration

Type: String
Datadog site from which the private location pulls the test configuration and pushes the test results. Your site is .

DNS configuration

The following parameters can be used to customize DNS resolution on your API tests:

Type: Boolean
Default: true
Use host local DNS configuration first (for example, the configuration from your etc/resolv.conf file), then DNS servers specified in the dnsServer parameter.
Type: Array of Strings
Default: ["",""]
DNS servers IPs to use in given order (for example, --dnsServer="" --dnsServer="").

On browser tests, the DNS resolution is done directly by the browser, which usually reads DNS servers from the host. Alternatively, you can configure it at the container level (for example, using the --dns flag on Docker, or dnsConfig.nameservers on Kubernetes).

Reserved IPs configuration

Type: Boolean
Default: false
Prevent users from creating Synthetic tests on endpoints that are using reserved IP ranges (IANA IPv4 and IPv6 Special-Purpose Address Registry), unless for those explicitly set with the allowedIPRanges parameter.
Type: Array of Strings
Default: none
Grant access to specific IPs and/or CIDR among IP ranges blocked through enableDefaultBlockedIpRanges or blockedIPRanges (for example, "allowedIPRanges.4": ""). Note: allowedIPRanges has precedence over blockedIPRanges.
Type: Array of Strings
Default: none
Block access to specific IPs and/or CIDR in addition, or not, to the IP ranges blocked when setting the enableDefaultBlockedIpRanges parameter to true (for example, --blockedIPRanges.4="" --blockedIPRanges.6="::1/128".)

Note: The whitelistedRange and blacklistedRange parameters are deprecated and should be replaced by the listed ones above.

Proxy configuration

Type: String
Default: none
Proxy URL used by the private location to send requests to Datadog (for example, --proxyDatadog=http://<YOUR_USER>:<YOUR_PWD>@<YOUR_IP>:<YOUR_PORT>).
Type: String
Default: none
Proxy URL used by the private location to send test requests to the endpoint.
Type: Boolean
Default: false
Discard SSL errors when private location is using a proxy to send requests to Datadog.

Note: The proxy parameter is deprecated and should be replaced by proxyDatadog.

Advanced configuration

Type: Number
Default: 10
Maximum number of tests executed in parallel.
Type: Boolean
Enables the readiness and liveness of private location probes. This enables two endpoints: and
Type: Number
Default: 8080
Overrides the port for the private location status probes.
Type: String
Overrides the variables used in tests running on the Private Location. Format: VARIABLE=value. All variables imported this way are obfuscated.
Type: String
Overrides variables used in tests running on the Private Location with environment variables. It requires the environment variables to be imported in the containerized environment. With Docker, for example, docker run --env VARIABLE --environmentVariableOverride VARIABLE. All variables imported this way are obfuscated.

Private locations admin

Type: String
Default: /etc/datadog/synthetics-check-runner.json
Path to JSON configuration file.
Type: String
Default: pretty
Format log output between "pretty", and "json". Setting your log format to json allows you to have these logs automatically parsed when collected by Datadog.
Type: Number
Default: 3
Verbosity level (for example, -v, -vv, and -vvv).
Type: Boolean
Default: none
Display worker configuration parameters without secrets.
Type: Boolean
Default: none
Show help.

Note: Private Location containers output logs to stdout/stderr without saving them within the container.

Further Reading