Converts Datadog monitor and dashboard JSON into Terraform alarm code.
Chrome Extension | Firefox Add-on
- Create your monitor or dashboard in the Datadog UI and copy the JSON.
- Open the extension, fill in the resource name and paste in the JSON.
- Paste the resulting code into your terraform file and run
terraform fmt
(you can automate this with editor plugins)
And that's it.
- Create your monitor or dashboard in the Datadog UI and copy the JSON.
- Two possibilities:
- Use standard input
- Run
yarn convert
in the terminal - Paste the JSON, terminating input with CTRL-D
- Run
- Use a file:
- Save JSON to a file, say
dashboard.json
- Run
yarn convert dashboard.json
- Save JSON to a file, say
We'd love for folks to contribute! Feel free to add your own ideas or take a look at the issues for inspiration. The Contributing Guide explains development setup and the release process.