bifroest metrics show
Shows a live snapshot from the same data source as the monitoring listener's /metrics endpoint.
Syntax
With a standard SSH client, run ssh management@bifroest.example.org 'metrics show'.
Arguments
metric
Optional exact metric family names from the monitoring reference. Omit them to show all currently available families. Multiple names select the union, including every label set. Repeated names do not duplicate output. Regex, label selectors and PromQL are not supported.
Select a histogram by its base family name, such as bifroest_authentication_flow_evaluation_duration_seconds, not by a _bucket, _sum or _count sample name. The complete histogram is returned.
An unknown name fails the command without metric output. A known family with no current measurements remains absent, including average ages when no objects are active; it is not filled with zero.
Flags
Includes all general flags.
--format
string = "table"
Result format: table, json or openmetrics. Other commands' yaml and cbor formats are not supported here.
Output
The default table contains sample names, values and labels. Histograms have bucket, sum and count rows. JSON contains capturedAt, processStartedAt and families; each family uses Prometheus protobuf JSON fields, preserving labels, types, histogram buckets and summary quantiles. Non-finite numbers are strings such as "NaN" or "Infinity", and 64-bit integer fields are decimal strings. OpenMetrics includes HELP/TYPE metadata and one final # EOF line.
Every format includes the snapshot time and process start time; OpenMetrics carries them in a comment. Where process-start observation is unavailable, the startup timestamp is used. The snapshot is not a transaction across concurrent activity. Counters restart with the process; the command does not retain history or calculate rates.
Examples
Inspect connections without a monitoring port
- Configure an authorized management flow and workstation alias. A configured management flow enables metric collection even when
monitoring.enabledis false. -
Query two metric families:
1bifroest @bifroest-admin metrics show bifroest_connections_active bifroest_sessions_activeThe table includes all current label sets for those families.
-
Export the same selection for scripts:
1 2
bifroest @bifroest-admin metrics show bifroest_connections_active bifroest_sessions_active --format=json ssh management@bifroest.example.org 'metrics show bifroest_connections_active --format=openmetrics'
Availability
linux |
darwin |
windows |
|---|---|---|
| / | / | / |
Invocation modes
| Local CLI | @target |
Direct SSH |
|---|---|---|
Requires access.metrics.read in the management flow. A metrics-only policy is access: {metrics: true}. Authorized-key and forced-command restrictions still apply.