Skip to main content

scout metrics

Query metrics for a specific service from the Scout platform. Lists metric names, types, descriptions, and when they were first and last seen.

scout metrics demo

Usage

scout metrics <SERVICE> [flags]

Arguments

ArgumentTypeDescription
SERVICEstring(required) Service name to query metrics for

Flags

FlagTypeDefaultDescription
--sinceduration1hTime window (max: 1 hour). Conflicts with --start
--startRFC 3339Start time. Conflicts with --since
--endRFC 3339End time. Requires --start
--typestringFilter by metric type (e.g., counter, gauge, histogram)
--searchstringFilter metrics by name substring (case-insensitive)
--wideboolfalseShow full descriptions without truncation
--rawboolfalseOutput JSON

Examples

List all metrics for a service:

scout metrics payment-service

Filter by metric type:

scout metrics payment-service --type histogram

Search by metric name:

scout metrics payment-service --search latency

Combine type and search filters:

scout metrics payment-service --type counter --search request

Show full descriptions:

scout metrics payment-service --wide

Output as JSON:

scout metrics payment-service --raw
note

The maximum time range is 1 hour. Metrics are sorted alphabetically by name in the default output.

See Also

  • logs — query service logs
  • traces — query distributed traces
  • alerts — query alert history
Was this page helpful?