Skip to main content
Prints a time series of resource usage for the database, covering the last 24 hours. The database ID is optional: the CLI resolves it from the argument, then falls back to an interactive picker.
squarecloud db metrics
# Uses an interactive picker to choose the database.
squarecloud db metrics <dbID>
# Shows the last 24h of metrics for a specific database.
squarecloud db metrics <dbID> --json
# Prints the raw metric points as JSON.
Use squarecloud db metrics --help for more information about this command.