Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw can expose diagnostics metrics through the bundled
diagnostics-prometheustextGET /api/diagnostics/prometheus
Content type is
text/plain; version=0.0.4; charset=utf-8For traces, logs, OTLP push, and OpenTelemetry GenAI semantic attributes, see OpenTelemetry export.
text<Tab title="CLI"> ```bash} openclaw plugins enable diagnostics-prometheus ``` </Tab> </Tabs>
text```bash} curl -H "Authorization: Bearer $OPENCLAW_GATEWAY_TOKEN" \ http://127.0.0.1:18789/api/diagnostics/prometheus ```
| Metric | Type | Labels |
|---|---|---|
text openclaw_run_completed_total | counter | text channeltext modeltext outcometext providertext trigger |
text openclaw_run_duration_seconds | histogram | text channeltext modeltext outcometext providertext trigger |
text openclaw_model_call_total | counter | text apitext error_categorytext modeltext outcometext providertext transport |
text openclaw_model_call_duration_seconds | histogram | text apitext error_categorytext modeltext outcometext providertext transport |
text openclaw_model_tokens_total | counter | text agenttext channeltext modeltext providertext token_type |
text openclaw_gen_ai_client_token_usage | histogram | text modeltext providertext token_type |
text openclaw_model_cost_usd_total | counter | text agenttext channeltext modeltext provider |
text openclaw_tool_execution_total | counter | text error_categorytext outcometext params_kindtext tool |
text openclaw_tool_execution_duration_seconds | histogram | text error_categorytext outcometext params_kindtext tool |
text openclaw_harness_run_total | counter | text channeltext error_categorytext harnesstext modeltext outcometext phasetext plugintext provider |
text openclaw_harness_run_duration_seconds | histogram | text channeltext error_categorytext harnesstext modeltext outcometext phasetext plugintext provider |
text openclaw_message_processed_total | counter | text channeltext outcometext reason |
text openclaw_message_processed_duration_seconds | histogram | text channeltext outcometext reason |
text openclaw_message_delivery_total | counter | text channeltext delivery_kindtext error_categorytext outcome |
text openclaw_message_delivery_duration_seconds | histogram | text channeltext delivery_kindtext error_categorytext outcome |
text openclaw_queue_lane_size | gauge | text lane |
text openclaw_queue_lane_wait_seconds | histogram | text lane |
text openclaw_session_state_total | counter | text reasontext state |
text openclaw_session_queue_depth | gauge | text state |
text openclaw_memory_bytes | gauge | text kind |
text openclaw_memory_rss_bytes | histogram | none |
text openclaw_memory_pressure_total | counter | text leveltext reason |
text openclaw_telemetry_exporter_total | counter | text exportertext reasontext signaltext status |
text openclaw_prometheus_series_dropped_total | counter | none |
promql# Tokens per minute, split by provider sum by (provider) (rate(openclaw_model_tokens_total[1m])) # Spend (USD) over the last hour, by model sum by (model) (increase(openclaw_model_cost_usd_total[1h])) # 95th percentile model run duration histogram_quantile( 0.95, sum by (le, provider, model) (rate(openclaw_run_duration_seconds_bucket[5m])) ) # Queue wait time SLO (95p under 2s) histogram_quantile( 0.95, sum by (le, lane) (rate(openclaw_queue_lane_wait_seconds_bucket[5m])) ) < 2 # Dropped Prometheus series (cardinality alarm) increase(openclaw_prometheus_series_dropped_total[15m]) > 0
OpenClaw supports both surfaces independently. You can run either, both, or neither.
/healthz/readyz© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine