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

# Metrics

> View request, latency, CPU, and memory metrics for Edge Compute functions.

`telnyx-edge metrics <function>` summarizes recent request and resource metrics for one function. It accepts a function name or id and defaults to the last `24h`.

```bash theme={null}
telnyx-edge metrics my-func
telnyx-edge metrics my-func --since 6h
telnyx-edge metrics my-func --errors
telnyx-edge metrics my-func --json
```

The summary includes:

* request count
* HTTP 2xx, 4xx, and 5xx rates
* p50, p95, p99, and average request latency
* CPU usage
* memory usage

Use `--errors` for the HTTP-error view. Use `--json` to return the raw aggregate API response.

The API surface is `GET /v2/compute/funcs/{id}/metric_aggregates`. See the [API Reference](/docs/edge-compute/observability/api-reference).
