Daniel Ferreira Castro
Daniel Ferreira Castro

Reputation: 344

Is there a way to export all Datadog Monitors, Alerts and Dashboards?

So far what I got when researching about that question was summarised here (Export Datadog Monitor Alerts Weekly) and here (https://docs.datadoghq.com/monitors/faq/how-can-i-export-alert-history/#pagetitle)

My actual challenge is to find a way to mass convert several monitors, alerts and dashboards to Terraform scripts. The reason for that is that the actual DevOps infrastructure and process have already in place an automation that reads from a GIT full of Terraform scripts and once it gets a new Pull Request it imports to the Datadog environment the Monitor, Alert or Dashboard that was in the approved pull request.

Is there a way to export all Datadog Monitors, Alerts and Dashboards into a set of JSON files?

Upvotes: 2

Views: 11138

Answers (1)

draav
draav

Reputation: 1943

Have you looked into Terraformer? https://docs.datadoghq.com/agent/guide/how-to-import-datadog-resources-into-terraform/#terraformer

There is also a Datadog github repo called miscellany that has some importer and exporter scripts for dd resources. The one most related to what you're talking about is probably Dogmover. https://github.com/DataDog/Miscellany/tree/master/Dogmover

Upvotes: 2

Related Questions