Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Monitor Agent performance via command line
Simple Usage
npx praisonai telemetry performance start
With Configuration
npx praisonai telemetry performance metric llm_latency 150 npx praisonai telemetry performance timer start agent_response npx praisonai telemetry performance timer stop agent_response
# 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
# 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 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
# Watch metrics in real-time npx praisonai telemetry performance watch # Watch with refresh interval npx praisonai telemetry performance watch --interval 5
import { PerformanceMonitor, createPerformanceMonitor } from 'praisonai'; const monitor = createPerformanceMonitor(); monitor.record('latency', 150); console.log(monitor.getStats('latency'));