Hanzo AI

Metrics

The `hanzo metrics` commands.

Also for this capability: API · CLI · SDKs

API reference →

hanzo metrics query

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo metrics batchIngest a MetricBatch — the same payload the ZAP transport carries
hanzo metrics healthHow many metric series this deployment holds for your org
hanzo metrics queryRead your org's series back over a time range
hanzo metrics writeAppend samples to your org's named, labelled series

logs

CommandWhat it does
hanzo metrics logs healthHow many log records this deployment holds for your org
hanzo metrics logs querySearch your org's logs by label, time and substring
hanzo metrics logs writeAppend structured log records for your org

traces

CommandWhat it does
hanzo metrics traces healthHow many spans this deployment holds for your org
hanzo metrics traces queryRecent spans for your org over a time range
hanzo metrics traces traceEvery span of one trace — the waterfall
hanzo metrics traces writeAppend spans for your org

How is this guide?

On this page