datadog-exporter-0.7.0
توضیحات
CLI for exporting datadog metrics
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | datadog-exporter-0.7.0 |
| نام | datadog-exporter |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mark van Holsteijn |
| ایمیل نویسنده | mark@binx.io |
| آدرس صفحه اصلی | https://github.com/binxio/datadog-exporter |
| آدرس اینترنتی | https://pypi.org/project/datadog-exporter/ |
| مجوز | Apache2 |
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`.
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
| - | click |
| - | pytz |
| - | durations |
| - | tzlocal |
| - | datadog |
| - | requests |
| - | python-dateutil |
نحوه نصب
نصب پکیج whl datadog-exporter-0.7.0:
pip install datadog-exporter-0.7.0.whl
نصب پکیج tar.gz datadog-exporter-0.7.0:
pip install datadog-exporter-0.7.0.tar.gz