autonomy metrics query

Query current metric values from a control-plane metrics endpoint

Synopsis

Scrapes the Prometheus exposition format metrics endpoint of the AutonomyOps control plane and returns current metric values.

The endpoint is specified via –metrics-url or the AUTONOMY_METRICS_URL environment variable. It is the URL where the control-plane metrics server is listening (configured with –metrics-addr when starting the server).

Example: autonomy metrics query –metrics-url http://cp-host:9090/metrics autonomy metrics query –metrics-url http://cp-host:9090/metrics –metric cp_health_checks_total

Note: this command returns a point-in-time snapshot of current metric values. Time-range queries require a compatible time-series backend (e.g. Prometheus or Thanos) and are not yet supported in this release.

Use ‘autonomy metrics list’ to see available metric names.

Usage

autonomy metrics query [flags]

Options

      --metric string        filter to a specific metric name (e.g. cp_health_checks_total)
      --metrics-url string   URL of the Prometheus metrics endpoint (env: AUTONOMY_METRICS_URL)
      --output string        output format: "text" or "json" (default "text")

See also