Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandeepbal/cb395a315f6c7e2b0fa94afaf582313b to your computer and use it in GitHub Desktop.
Save mandeepbal/cb395a315f6c7e2b0fa94afaf582313b to your computer and use it in GitHub Desktop.
Export/Import datadog dashboards
dash_id=xxxx
api_key=xxx
app_key=xxx
# 1. export
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json
# 2. edit dash.json
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level
# 3. import
curl -X POST -H "Content-type: application/json" -d @dash.json "https://app.datadoghq.com/api/v1/dash?api_key=${api_key}&application_key=${app_key}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment