Export a Pipeline Configuration to JSON or Terraform
This product is not supported for your selected
Datadog site. (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
Overview
Setting up and updating a pipeline with Terraform or the API can be time-consuming, manual, and prone to syntax errors. Instead, you can create a pipeline or update an existing pipeline in the UI, and then export the configuration to JSON or Terraform to programmatically create or update the pipeline.
Export the configuration of a pipeline in draft mode
When building a pipeline that has not been deployed yet, you can set up the pipeline in the UI, and then export the pipeline configuration to JSON or Terraform to programmatically create it.
- Navigate to Observability Pipelines.
- Set up a pipeline by adding your source, processors, and destinations.
- After your pipeline has been configured, click Export Pipeline.
- Click the copy or download button to export the configuration as JSON or Terraform.
- Deploy the pipeline configuration using the API or Terraform.
- Install the Worker to start sending and processing data through the pipeline.
Export the configuration of a deployed pipeline
A deployed pipeline has a Worker installed to send data through the pipeline and can be either active or inactive.
Export a pipeline’s configuration
When viewing a deployed pipeline in the UI, you can export its configuration to JSON or Terraform to programmatically create it.
- Navigate to Observability Pipelines.
- Select a deployed pipeline (status can be
active or inactive) to view the configuration. - Click Export Pipeline.
- Click the copy or download button to export the configuration as JSON or Terraform.
- Update the JSON or Terraform configuration for any additional changes you want to make and then deploy the configuration programmatically.
Export a pipeline’s configuration after making edits to the pipeline
When editing a deployed pipeline, you can add new components such as Packs or update volume control rules in the UI and export the configuration to JSON or Terraform to deploy the changes programmatically.
- Navigate to Observability Pipelines.
- Select a deployed pipeline (status can be either
active or inactive) to view the configuration. - Make changes to your source, destinations, or processors.
- Before exiting the pipeline, click Export Pipeline.
- Click the copy or download button to export the configuration as JSON or Terraform.
- Note: After making updates to your pipeline in the UI, the exported configuration includes the latest changes, even if you haven’t saved or deployed the changes.
- Click the Observability Pipelines logo on the top left side of the page to exit the pipeline without saving the changes made in the UI.
- Use the copied or downloaded configuration to programmatically update your pipeline.
Further reading