> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tai42.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# tai obs

> Query observability metrics.

Query observability metrics.

```console theme={null}
$ tai obs [OPTIONS] COMMAND [ARGS]...
```

## `tai obs metrics`

Query aggregate observability metrics over a time range.

Example: `tai obs metrics --from 7d --granularity day`

```console theme={null}
$ tai obs metrics [OPTIONS]
```

| Option                 | Description                                            |
| ---------------------- | ------------------------------------------------------ |
| `--from` `TEXT`        | Range start: an ISO instant or a relative token (30d). |
| `--to` `TEXT`          | Range end: an ISO instant or a relative token.         |
| `--granularity` `TEXT` | Series granularity: hour, day, or week.                |
| `--json` / `--no-json` | Emit raw JSON instead of human tables.                 |
