- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`Use the datadog-sync-cli
tool to copy your dashboards, monitors and other configurations from your primary Datadog account to your secondary Datadog account.
You can determine the frequency and timing of syncing based on your business requirements. However, regular syncing is essential to ensure that your secondary account is up-to-date in the event of an outage.
Datadog recommends syncing your accounts on a daily basis.
datadog-sync-cli
tool is used to migrate resources across organizations, regardless of datacenter. It cannot, nor is it intended to, transfer any ingested data, such as logs, metrics etc. The source organization will not be modified, but the destination organization will have resources created and updated by the sync
command.The datadog-sync-cli
tool can be installed from:
Installing from source requires Python v3.9+
Clone the project repo and CD into the directory
git clone https://github.com/DataDog/datadog-sync-cli.git
cd datadog-sync-cli
Install datadog-sync-cli
tool using pip
pip install .
Invoke the cli tool using
datadog-sync <command> <options>
Download the executable from the Releases page
Provide the executable with executable permission
chmod +x datadog-sync-cli-{system-name}-{machine-type}
Move the executable to your bin directory
sudo mv datadog-sync-cli-{system-name}-{machine-type} /usr/local/bin/datadog-sync
Invoke the CLI tool using
datadog-sync <command> <options>
Download the executable with extension .exe
from the Releases page
Add the directory containing the exe file to your path
Invoke the CLI tool in cmd/powershell
using the file name and omitting the extension:
datadog-sync-cli-windows-amd64 <command> <options>
Clone the project repo and CD into the directory
git clone https://github.com/DataDog/datadog-sync-cli.git
cd datadog-sync-cli
Build the provided Dockerfile
docker build . -t datadog-sync
Run the Docker image using entrypoint below:
docker run --rm -v <PATH_TO_WORKING_DIR>:/datadog-sync:rw \
-e DD_SOURCE_API_KEY=<DATADOG_API_KEY> \
-e DD_SOURCE_APP_KEY=<DATADOG_APP_KEY> \
-e DD_SOURCE_API_URL=<DATADOG_API_URL> \
-e DD_DESTINATION_API_KEY=<DATADOG_API_KEY> \
-e DD_DESTINATION_APP_KEY=<DATADOG_APP_KEY> \
-e DD_DESTINATION_API_URL=<DATADOG_API_URL> \
datadog-sync:latest <command> <options>
The docker run command mounts a specified <PATH_TO_WORKING_DIR> working directory to the container.
These are the Available URL’s for the source and destination API URLs when syncing your organization:
Site | Site URL | Site Parameter | Location |
---|---|---|---|
US1 | https://app.datadoghq.com | datadoghq.com | US |
US3 | https://us3.datadoghq.com | us3.datadoghq.com | US |
US5 | https://us5.datadoghq.com | us5.datadoghq.com | US |
EU1 | https://app.datadoghq.eu | datadoghq.eu | EU (Germany) |
US1-FED | https://app.ddog-gov.com | ddog-gov.com | US |
AP1 | https://ap1.datadoghq.com | ap1.datadoghq.com | Japan |
For all available regions, see Getting Started with Datadog Sites.
Run the import
command to read the specified resources from the source organization and store them locally into JSON files in the directory resources/source
.
Run the sync
command which will use the stored files from previous import
command to create/modify the resources on the destination organization. The pushed resources are saved in the directory resources/destination.
--force-missing-dependencies flag is passed
)(WHAT IS THIS REFERENING?
)The migrate command will run an import
followed immediately by a sync
.
The reset command will delete resources at the destination; however, by default it backs up those resources first and fails if it cannot. You can (but probably shouldn’t) skip the backup by using the –do-not-backup flag.
Example usage:
# Import resources from parent organization and store them locally
$ datadog-sync import \
--source-api-key="..." \
--source-app-key="..." \
--source-api-url="https://api.datadoghq.com" # this is an example of a source url, yours may be different
> 2024-03-14 14:53:54,280 - INFO - Starting import...
> ...
> 2024-03-14 15:00:46,100 - INFO - Finished import
# Check diff output to see what resources will be created/modified
$ datadog-sync diffs \
--destination-api-key="..." \
--destination-app-key="..." \
--destination-api-url="https://api.datadoghq.eu" #this is an example of a destination url, yours may be different
> 2024-03-14 15:46:22,014 - INFO - Starting diffs...
> ...
> 2024-03-14 14:51:15,379 - INFO - Finished diffs
# Sync the resources to the child organization from locally stored files and save the output locally
$ datadog-sync sync \
--destination-api-key="..." \
--destination-app-key="..." \
--destination-api-url="https://api.datadoghq.eu"
> 2024-03-14 14:55:56,535 - INFO - Starting sync...
> ...
> 2024-03-14 14:56:00,797 - INFO - Finished sync: 1 successes, 0 errors