Skip to main content

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​

CommandPurpose
tcb logs searchSearch Cloud Function, CloudBase Run, and platform logs with CLS syntax

Monitoring​

tcb monitor has been available since v3.5.8.

CommandPurpose
tcb monitor schemaShow metric names and fields supported by a resource type
tcb monitor functionCloud Function monitoring
tcb monitor databaseDocument database monitoring
tcb monitor mysqlMySQL database monitoring
tcb monitor cloudrunCloudBase Run monitoring
tcb monitor hostingStatic hosting monitoring
tcb monitor authAuthentication monitoring
tcb monitor aiAI model monitoring
tcb monitor knowledgebaseKnowledge base monitoring
tcb monitor gatewayGateway monitoring
tcb monitor userloginUser login monitoring
tcb monitor dbconnectorDB Connector monitoring
tcb monitor envEnvironment QPS monitoring

Alerts​

CommandPurpose
tcb api monitor <action>Manage alarm policies through the general cloud API

Notes​

  • Run tcb monitor schema to confirm metric names before querying a resource
  • Monitoring data has a minute-level delay, so calls that just happened may not be visible yet