# Logs and metrics

> Stream service logs, read metrics, and trust honest unavailable states.

Logs and metrics flow through the Yalla backend. Neither the CLI nor the control plane ever connects to private runtime infrastructure directly.

## Stream logs

```bash
yalla logs --service api --env production --follow
```

Machine-readable log envelope for agents.

```bash
yalla logs --service api --env production --since 1h --json
```

## Read metrics

```bash
yalla metrics --service api --env production --window 24h
```

Metrics cover CPU, memory, and request rates. The Metrics tab of the [control-plane inspector](/docs/control-plane) shows the same numbers from the same API.

## When data is unavailable

> [!NOTE]
> If a backend adapter has no live samples yet, Yalla shows an explicit empty or unavailable state instead of fabricated data — in the CLI, the control plane, and these docs.
