DDPaw CLI Tool
Description
ddpaw is a command-line tool for extracting, visualizing, and analyzing metrics from Datadog's Application Performance Monitoring (APM) service based on a query. It provides a set of commands to help you manage and interact with metrics data.
Table of Contents
[TOC]
Installation
pip install --no-cache-dir ddpaw
Usage
ddpaw provides several commands to interact with Datadog metrics
ddpaw <command> [options]
Set up your DataDog API credentials by creating a .env file in the project root directory:
API_KEY=your-api-key
APP_KEY=your-app-key
Commands
export
Export metrics data based on the given query and time range.
Options
-s,--start_at: The start time of the time range (required).-e,--end_at: The end time of the time range (required).-q,--query: The query to retrieve metrics data (required).--format: The format of the data (choices:csv,json).--all-response: Flag indicating whether to include all response data.-v,--verbose: Flag indicating whether to display verbose output.
Example
ddpaw export -s 2024-04-05T12:00:00 -e 2024-04-05T17:30:00 \
-q "sum:trace.fastapi.request.hits{env:prod,service:d2api-api} by {version}.as_rate()" \
--format=csv
visualize
Visualize metrics data based on the given query and time range.
Options
-s,--start_at: The start time of the time range (required).-e,--end_at: The end time of the time range (required).-q,--query: The query to retrieve metrics data (required).-v,--verbose: Flag indicating whether to display verbose output.
Example
ddpaw visualize -s 2024-04-05T12:00:00 -e 2024-04-05T17:30:00 \
-q "sum:trace.fastapi.request.hits{env:prod,service:d2api-api} by {version}.as_rate()"
analyze
Analyze metrics data based on the given query and time range.
Options
-s,--start_at: The start time of the time range (required).-e,--end_at: The end time of the time range (required).-q,--query: The query to retrieve metrics data (required).-v,--verbose: Flag indicating whether to display verbose output.
Example
ddpaw analyze -s 2024-04-05T12:00:00 -e 2024-04-05T17:30:00 \
-q "sum:trace.fastapi.request.hits{env:prod,service:d2api-api} by {version}.as_rate()"
Completions
Generate shell completions for ddpaw.
Arguments
shell: The shell type (choices:bash,zsh,fish).
For example:
ddpaw completions bash
Contributing
Contributions are welcome! Please follow the guidelines in CONTRIBUTING.md.
License
This project is licensed under the MIT License.
Metadata
Release files for ddpaw 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ddpaw-0.1.1.tar.gz | 8.2 kB | Without provenance | Details for ddpaw-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ddpaw-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ddpaw-0.1.1-py3-none-any.whl |
Total release size: 17.1 kB
Release files / ddpaw-0.1.1.tar.gz
| Download URL | ddpaw-0.1.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57fc90ab91a6b389a31557fb35799d3a724376da240f291b9c80ce9efd72c586
|
|
BLAKE2b-256 checksum How to use checksums |
4bf991646c8b95b2cd664e68c4a5fdf1805fab2b0948f1f15c20b937cf7f480b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0
|
Release files / ddpaw-0.1.1-py3-none-any.whl
| Download URL | ddpaw-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f07fde50a3961c47a3edf4c32845f9c6f6dc7259ebb25856fb6dbefd0e86d886
|
|
BLAKE2b-256 checksum How to use checksums |
9e67f56365df8b3c8910d1e2c40f5ae00743e7661f2c07f77f183a6eaeae859d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Darwin/23.4.0
|
Security for ddpaw 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.