> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance Monitor CLI

> Monitor Agent performance via command line

# Performance Monitor CLI

Track and export Agent performance metrics from the command line.

## Start Monitoring

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Start performance monitor
npx praisonai telemetry performance start

# Record a metric
npx praisonai telemetry performance metric llm_latency 150

# Start a timer
npx praisonai telemetry performance timer start agent_response
npx praisonai telemetry performance timer stop agent_response
```

## View Stats

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Show all stats
npx praisonai telemetry performance stats

# Show specific metric
npx praisonai telemetry performance stats llm_latency

# Show summary dashboard
npx praisonai telemetry performance dashboard
```

## Export Metrics

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Export as JSON
npx praisonai telemetry performance export --json

# Export for Prometheus
npx praisonai telemetry performance export --prometheus

# Save to file
npx praisonai telemetry performance export --output metrics.json
```

## Live Monitoring

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Watch metrics in real-time
npx praisonai telemetry performance watch

# Watch with refresh interval
npx praisonai telemetry performance watch --interval 5
```

## Programmatic (TypeScript)

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { PerformanceMonitor, createPerformanceMonitor } from 'praisonai';

const monitor = createPerformanceMonitor();
monitor.record('latency', 150);
console.log(monitor.getStats('latency'));
```

## Related

* [Performance Monitor](/docs/js/performance-monitor) - SDK documentation
* [Telemetry CLI](/docs/js/telemetry-cli) - Telemetry commands
* [Observability CLI](/docs/js/observability-cli) - Full observability
