Skip to main content

CLI for exporting datadog metrics

Project description

A simple command line utility to export datadog metrics.

events

to export datadog events that where reported in the last 24 hours, type:

datadog-exporter events \
    --iso-datetime \
    --pretty-print \
    --start-time -24h

metric names

to export all available database metric names, type:

datadog-exporter names

metrics

to export specific metrics from the last 24 hours, type:

 datadog_export metrics \
    --iso-datetime \
    --pretty-print \
    --start-time -2h \
    --window 30m \
    'docker.cpu.system{*}'     

The --window option allows you to influence the resolution of the values returned.

credentials

Add your Datadog Application and API key in the file $HOME/.datadog.ini in the section DEFAULT:

[DEFAULT]
api_key=a77aaaaaaaaaaaaaaaaaaaaa
app_key=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

Alternatively, you can set the environment variable DATADOG_API_KEY and DATADOG_APP_KEY.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

datadog_exporter-0.8.0-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page