Private locations allow you to monitor internal-facing applications or any private URLs that aren’t accessible from the public internet. They can also be used to:
Private locations come as Docker containers that you can install wherever makes sense inside of your private network. Once created and installed, you can assign Synthetic tests to your private location just like you would with any regular managed location.
Your private location worker pulls your test configurations from Datadog’s servers using HTTPS, executes the test on a schedule or on-demand, and returns the test results to Datadog’s servers. You can then visualize your private locations test results in a completely identical manner to how you would visualize tests running from managed locations:
The private location worker is available on Docker Hub:
Set up a Vagrant Ubuntu 16.04 virtual machine.
Install Docker on that machine.
In the Datadog app, hover over UX Monitoring and select Settings -> Private Locations. Click Add Private Location.
Fill out your private location details (only
API key fields are mandatory). Click Save Location and Generate Configuration File to generate the configuration file associated with your private location on your worker.
Specify the proxy URL if the traffic between your private location and Datadog needs to go through a proxy. You can also optionally toggle the Block reserved IPs button to block a default set of reserved IP ranges (IPv4 address registry and IPv6 address registry).
Copy and paste your private location configuration file to your working directory.
Note: The configuration file contains secrets for private location authentication, test configuration decryption, and test result encryption. Datadog does not store the secrets, so store them locally before leaving the Private Locations screen. You need to be able to reference these secrets again if you decide to add more workers, or to install workers on another host.
Launch your worker as a standalone container using the Docker run command provided and the previously created configuration file:
docker run --rm -v $PWD/worker-config-<LOCATION_ID>.json:/etc/datadog/synthetics-check-runner.json datadog/synthetics-private-location-worker
If your private location reports correctly to Datadog, you will see an
OK health status on your private locations list, in the Settings section:
You will also see private location logs populating similar to this example:
2019-12-17 13:05:03 [info]: Fetching 10 messages from queue - 10 slots available 2019-12-17 13:05:03 [info]: Fetching 10 messages from queue - 10 slots available 2019-12-17 13:05:04 [info]: Fetching 10 messages from queue - 10 slots available
You are now able to use your new private location as any other Datadog managed locations to run Synthetic tests.
Create an API or a Browser on any internal endpoint or application you want to monitor.
Select the new private location under Private Locations:
Go ahead with your test creation!
After you set up your private location: