Describe the bug
The account I authorized pup with has permissions to view the metrics, and I can verify that by opening the metric explorer on the app.datadoghq.com page. However, pup metrics query is returning a 400 for even the simplest of queries.
To Reproduce
Steps to reproduce the behavior:
- Run command
pup metrics query
- With arguments
--query "avg:system.cpu.user{*}" --from "1h" --to "now" --output json
- See error
Error: failed to query metrics: 400 Bad Request (status: 400)
Expected behavior
It should return the metrics data in JSON
Environment
- OS: macOS
- Pup version:
pup version dev (pup --version returns this only)
- Go version:
1.23.1
- Authentication method:
Oauth2
Command output
❯ pup metrics query --query "avg:system.cpu.user{*}" --from "1h" --to "now" --output json
Error: failed to query metrics: 400 Bad Request (status: 400)
Describe the bug
The account I authorized
pupwith has permissions to view the metrics, and I can verify that by opening the metric explorer on the app.datadoghq.com page. However,pup metrics queryis returning a400for even the simplest of queries.To Reproduce
Steps to reproduce the behavior:
pup metrics query--query "avg:system.cpu.user{*}" --from "1h" --to "now" --output jsonError: failed to query metrics: 400 Bad Request (status: 400)Expected behavior
It should return the metrics data in JSON
Environment
pup version dev(pup --versionreturns this only)1.23.1Oauth2Command output