This script can export monitors from datadog organization. Also that can import monitors from json files.
$ pip3 install datadog-api-client
- You need modify monitor_ids.csv
- Write monitor id that you want to export.
- Run script bellow.
$ python3 datadog_export_import_monitors_log.py export monitor_ids.csv
- Input Your Datadog Organization API/APP Key.
- Results output to file datadog_monitor.log.
- You need monitor json exported file from datadog organization.
- Run script bellow.
$ python3 datadog_export_import_monitors_log.py "xxx.json"
- Also it can run
$ python3 datadog_export_import_monitors_log.py "*.json"
- Input Your Datadog Organization API/APP Key.
- Results output to file datadog_monitor.log.
Look at datadog_monitor.log.