Skip to content

tubocurarin/datadog-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datadog-fetch

Fetch metric data from Datadog!

Usage

I recommend the usage of pipenv, so everything stays easily in a virtualenv.

  1. Install dependencies via pipenv install.
  2. Run pipenv run fetch

Help

From ./fetch --help:

usage: fetch [-h] [--period PERIOD] [--out OUT] query

Fetches metric data from Datadog. To run this script, two environment
variables are required: DATADOG_API_KEY and DATADOG_APP_KEY. See
https://app.datadoghq.com/account/settings#api on how to obtain them.

positional arguments:
  query            Metric query to fetch data from.

optional arguments:
  -h, --help       show this help message and exit
  --period PERIOD  Time period over which you want to fetch data (in seconds).
                   (default: 3600)
  --out OUT        File name to store data to. Displays to terminal by
                   default.

About

Python script to fetch metrics data from Datadog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages