---
title: "ktm metrics"
description: "Use the ktm metrics command to query monitor KPIs, passive collector data, and device utilization stored in InfluxDB."
sidebarTitle: "metrics"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Metrics — query monitor KPIs, passive collector data, and device utilization from InfluxDB

## Usage

```bash
ktm metrics [flags]
```

## Subcommands

<Columns cols={2}>
  <Card title="alert-eval" icon="angle-right" href="/cli/commands/metrics/alert-eval">
    Evaluate metrics against alert rules
  </Card>
  <Card title="correlate" icon="angle-right" href="/cli/commands/metrics/correlate">
    Detect cross-metric relationships: correlation, distribution shift, lag
  </Card>
  <Card title="peak-usage" icon="angle-right" href="/cli/commands/metrics/peak-usage">
    Get P95 peak resource usage across time aggregation windows
  </Card>
  <Card title="query" icon="angle-right" href="/cli/commands/metrics/query">
    Execute a raw InfluxQL query against the operator's metrics database
  </Card>
  <Card title="resource-usage" icon="angle-right" href="/cli/commands/metrics/resource-usage">
    Get device resource usage broken down by hour and 5-minute intervals
  </Card>
  <Card title="slo" icon="angle-right" href="/cli/commands/metrics/slo">
    Compute SLI/SLO metrics using Google SRE burn-rate methodology
  </Card>
</Columns>

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
