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
The file ~/.datadog.ini is a Python configuration file from which the Datadog i
connection parameters are read. At least it will
need the api_key
and api_app
attributes 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
Built Distribution
Hashes for datadog_exporter-0.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe09b3e4d28f2674cec8f131c9f8caa0f79be229bfc9edbc31a698d6da045623 |
|
MD5 | 9c90eb3ea5eef3a5ab8797749ce0daec |
|
BLAKE2b-256 | 2b1d59f7423957ed3ecf16753938672caac1641308b9acf119eb6ac6a7c5e266 |