Skip to content

Quickly convert Datadog screenboards to use global time.

License

Notifications You must be signed in to change notification settings

charlieoleary/globaldog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌎🐶 globaldog

Ever want to convert an existing Datadog screenboard to use the new global time option? This script will make it a much easier task.

Installing

Simply clone the repository, run pip install -r requirements.txt, then issue the command below.

Getting Started

First, visit the Datadog API page and generate or grab an existing API and application key. Once you have that, you can set the following environment variables:

export DATADOG_API_KEY=<YOUR_API_KEY>
export DATADOG_APP_KEY=<YOUR_APP_KEY>

Next, open a Datadog screenboard that you wish to use global time with. Take note of the ID in the URL as shown below. If this is an integration dashboard included with Datadog, you'll need to clone it, then copy the new ID.

https://app.datadoghq.com/screen/<SCREENBOARD_ID>/title-of-your-dashboard?page=0&is_auto=false&from_ts=1547592360000&to_ts=1547595960000&live=true

Once you have your ID simply run:

python globaldog.py --screenboard <SCREENBOARD_ID>

The script will fetch the board, update all widgets with the time key, then push the modified dashboard back up to your Datadog account.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Quickly convert Datadog screenboards to use global time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages