Observability Stack
ZeroClaw provides multiple observability layers:Logs
Structured logging with tracing
Metrics
Prometheus metrics endpoint
Health Checks
Built-in diagnostics
Tracing
OpenTelemetry support
Logging
Log Levels
Control verbosity withRUST_LOG environment variable:
Log Format
Logs use structured format with timestamps:Log Aggregation
Ship logs to aggregation services:- Grafana Loki
- Elasticsearch
Metrics
Prometheus Endpoint
Enable metrics inconfig.toml:
http://localhost:9090/metrics
Key Metrics
Request Metrics
Request Metrics
Tool Execution
Tool Execution
Provider Metrics
Provider Metrics
Error Tracking
Error Tracking
System Resources
System Resources
Prometheus Configuration
Add ZeroClaw to Prometheus scrape config:Grafana Dashboard
Import the ZeroClaw dashboard:- Request rate and latency
- Tool execution statistics
- Token usage and costs
- Error rates
- System resources
OpenTelemetry
Export traces and metrics to OTLP collectors:Trace Example
Health Checks
Liveness Probe
Check if the service is running:Readiness Probe
Check if the service is ready to handle requests:- Provider connectivity
- Channel health
- Memory backend