Command Overview
Observability commands fall into two groups: log search with tcb logs search, and monitoring metrics with tcb monitor. Alarm policies have no dedicated command and go through the general cloud API.
Logs
| Command | Purpose |
|---|---|
tcb logs search | Search Cloud Function, CloudBase Run, and platform logs with CLS syntax |
Monitoring
tcb monitor has been available since v3.5.8.
| Command | Purpose |
|---|---|
tcb monitor schema | Show metric names and fields supported by a resource type |
tcb monitor function | Cloud Function monitoring |
tcb monitor database | Document database monitoring |
tcb monitor mysql | MySQL database monitoring |
tcb monitor cloudrun | CloudBase Run monitoring |
tcb monitor hosting | Static hosting monitoring |
tcb monitor auth | Authentication monitoring |
tcb monitor ai | AI model monitoring |
tcb monitor knowledgebase | Knowledge base monitoring |
tcb monitor gateway | Gateway monitoring |
tcb monitor userlogin | User login monitoring |
tcb monitor dbconnector | DB Connector monitoring |
tcb monitor env | Environment QPS monitoring |
Alerts
| Command | Purpose |
|---|---|
tcb api monitor <action> | Manage alarm policies through the general cloud API |
Notes
- Run
tcb monitor schemato confirm metric names before querying a resource - Monitoring data has a minute-level delay, so calls that just happened may not be visible yet