brightcove / dog-watcher

A utility which can be used to watch your DataDog monitor and dashboard configs and save them to a separate repository when they change.
Other
49 stars 15 forks source link

Error Importing Dashboard #8

Open forexpiphunter opened 5 years ago

forexpiphunter commented 5 years ago

Hi,

I'm getting an error message when I import dashboard in Datadog "Error Importing" Has anything changed?

tomruggs commented 5 years ago

There was no functionality change made within this project that would account for differences in backup files, but dependencies were updated in #7. Can you report back how your dashboard backup changed? You should be able to diff before and after commits. And what is your import procedure?

forexpiphunter commented 5 years ago

We are currently just testing export tools and importing them manually.

You may be using older Datadog API, this is what we had to do manually to get it to work: Export (get) the dashboard: curl -X GET "https://app.datadoghq.com/api/v1/dashboard/?api_key=&application_key="

Import (create/update) the dashboard: curl -X POST -H "Content-type: application/json" -d @dash.json "https://app.datadoghq.com/api/v1/dashboard?api_key=&application_key="

I had to delete the author_name field to get the import to work