akua query
Planned
Structured queries against observability stores.
akua query <expr> [flags]
Query syntax: promql-like for metrics, logql-like for logs, tempoql for traces. Returns JSON.
Flags
| flag | description | |||
|---|---|---|---|---|
| `--backend=<prometheus\ | loki\ | tempo\ | auto>` | which store |
--since=<duration> | time window (default: 1h) | |||
| `--format=<json\ | table\ | chart>` | output shape |
Example
akua query "error_rate p99 last 1h service=checkout" --json
{
"query": "error_rate p99 last 1h service=checkout",
"backend": "prometheus",
"result": {
"value": 0.023,
"baseline": 0.001,
"change_pct": 2200,
"samples": 60
}
}