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

# squarecloud app metrics

> 显示你的应用程序过去 24 小时内的 CPU、RAM 和网络指标。

打印应用过去 24 小时内的 CPU 使用率、RAM 使用率和网络流量的时间序列数据。应用 ID 是可选的：CLI 会先从参数中解析，然后是当前目录下的 `squarecloud.app` 配置文件，最后回退到交互式选择器。

```bash theme={null}
squarecloud app metrics
# 使用 squarecloud.app 中的应用 ID，或回退到交互式选择器。
```

```bash theme={null}
squarecloud app metrics <appID>
# 显示指定应用过去 24 小时的指标。
```

```bash theme={null}
squarecloud app metrics --json
# 以 JSON 格式打印原始指标数据点。
```

使用 `squarecloud app metrics --help` 获取有关此命令的更多信息。
