Converts Datadog monitor and dashboard JSON into Terraform HCL code.
- Clone the repo
- Make sure you're on node 16
yarn install
yarn build
convert <your-datadog-json-file>.json
- Output will be on the terminal, you will need to change the name of the dashboard from
replaceMeNow
.
There is currently a limitation with dashboard components made up of multiple queries. These need to be hand-adjusted but will be caught with terraform plan
.
Currently these queries get repeated N times, with N being the number of queries making up the single query.
These queries also need to be wrapped with query {}