Skip to main content

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.

Metadata

Release files for datadog-exporter 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for datadog-exporter 0.8.0
File Interpreter ABI Platform
datadog_exporter-0.8.0-py3-none-any.whl Python 3 none any Details

Release files / datadog_exporter-0.8.0-py3-none-any.whl

Download URL datadog_exporter-0.8.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf5381f5cbc7a18dc3f345edbc07e839d78b77baf96e3bfd61d6a596c4a21c38
BLAKE2b-256 checksum
How to use checksums
0d4bc4f96a2807976f6ad36f8150b7cebc7f8c8ed837c52408387910350bcc5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.8.0 This release

1 release file

0.7.0

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page