Use the datadog-sync-cli tool to copy your dashboards, monitors, and other configurations from your primary org to your DDR org.
The datadog-sync-cli
tool is primarily intended for unidirectional copying and updating resources from your primary org to your DDR org. Resources copied to the DDR org can be edited, but any new syncing overrides changes that differ from the source in the primary org.
Regular syncing is essential to ensure that your DDR org is up-to-date in the event of a disaster. Datadog recommends performing this operation on a daily basis; you can determine the frequency and timing of syncing based on your business requirements. For information on setting up and running the backup process, see the datadog-sync-cli README.
Use the datadog-sync-cli
configuration available in the documentation to add each item to the sync scope. Here’s an example of a configuration file for syncing specific dashboards and monitors using name and tag filtering from an EU
site to a US5
site:
destination_api_url="https://api.us5.datadoghq.com"
destination_api_key="<US5_API_KEY>"
destination_app_key="<US5_APP_KEY>"
source_api_key="<EU_API_KEY>"
source_app_key="<EU_APP_KEY>"
source_api_url="https://api.datadoghq.eu"
filter=["Type=Dashboards;Name=title","Type=Monitors;Name=tags;Value=sync:true"]
# Make sure to increase the retry timeout to cope with the rate limit
http_client_retry_timeout=600
Here’s an example of a datadog-sync-cli command for syncing log configurations:
datadog-sync migrate –config config –resources="users,roles,logs_pipelines,logs_pipelines_order,logs_indexes,logs_indexes_order,logs_metrics,logs_restriction_queries" –cleanup=Force
datadog-sync-cli limitation for log standard attributesThe datadog-sync-cli is regularly being updated with new resources. At this time, syncing log standard attributes is not supported for private beta. If you use standard attributes with your log pipelines and are remapping your logs, attributes are a dependency that you need to manually re-configure in your DDR org. See the Datadog
standard attribute documentation for support.
Verify availability at the DDR site
Verify that your DDR org is accessible and that your dashboards and monitors are copied from your primary org to your DDR org.
Contact your Customer Success Manager or Datadog Support if you need assistance.