datadog-cli

Crates.iodatadog-cli
lib.rsdatadog-cli
version0.2.0
created_at2026-01-06 01:56:43.930117+00
updated_at2026-01-06 07:18:13.905417+00
descriptionA CLI tool for querying Datadog
homepage
repositoryhttps://github.com/maxthomson/datadog-cli
max_upload_size
id2024949
size87,860
Max Thomson (MNThomson)

documentation

README

datadog-cli

github crates.io crates.io build status

CLI tool for querying Datadog logs and events (since the UI sucks at loading them).

$ cargo install datadog-cli

$ export DD_API_KEY=...
$ export DD_APP_KEY=...

$ datadog logs 'status:error'
[2026-01-05 12:34:56] ERROR | Connection timeout to database
[2026-01-05 12:34:12] ERROR | Failed to process request

$ datadog events 'source:kubernetes status:error "failed"' --from now-30d --to now-2h --limit 5
[2026-01-05 12:30:00] ERROR | Pod failed to scheduled

$ datadog 'https://app.datadoghq.com/logs?query=status:error&from_ts=...'
[2026-01-05 12:34:56] ERROR | Connection timeout to database

Or use the 1Password CLI to inject secrets:

alias datadog='op run --no-masking --env-file=<(echo -e "DD_API_KEY=op://private/Datadog API/api_key\nDD_APP_KEY=op://private/Datadog API/app_key") -- ~/.local/share/cargo/bin/datadog'

License

Licensed under AGPL-3.0
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you shall be licensed as above, without any additional terms or conditions
Commit count: 0

cargo fmt