Skip to content
Cette page a été générée et traduite avec l'aide de l'IA. Si vous remarquez des inexactitudes, n'hésitez pas à contribuer. Modifier sur GitHub

Prometheus Metrics

PRX expose a Prometheus-compatible metrics endpoint for integration with monitoring systems like Grafana, Datadog, and AlertManager.

Endpoint

Lorsqu'active, metrics sont disponibles at:

http://127.0.0.1:9090/metrics

Available Metrics

Agent Metrics

MetricTypeDescription
prx_sessions_totalCounterTotal sessions created
prx_sessions_activeGaugeCurrently active sessions
prx_session_duration_secondsHistogramSession duration
prx_tours_totalCounterTotal conversation tours
prx_tool_calls_totalCounterTotal appels d'outils (by tool name)

LLM Provider Metrics

MetricTypeDescription
prx_llm_requests_totalCounterTotal LLM requests (by fournisseur, model)
prx_llm_request_duration_secondsHistogramLLM request latency
prx_llm_tokens_totalCounterTotal tokens (input/output, by model)
prx_llm_errors_totalCounterLLM errors (by type)
prx_llm_cost_dollarsCounterEstimated cost in USD

System Metrics

MetricTypeDescription
prx_memory_usage_bytesGaugeProcess memory usage
prx_cpu_usage_ratioGaugeProcess CPU usage

Configuration

toml
[observability.metrics]
enabled = true
bind = "127.0.0.1:9090"
path = "/metrics"

Voir aussi Pages

Released under the Apache-2.0 License.