Skip to main content
Monitor your ZeroClaw agents with comprehensive logging, metrics, and alerting.

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 with RUST_LOG environment variable:

Log Format

Logs use structured format with timestamps:

Log Aggregation

Ship logs to aggregation services:

Metrics

Prometheus Endpoint

Enable metrics in config.toml:
Metrics available at http://localhost:9090/metrics

Key Metrics

Prometheus Configuration

Add ZeroClaw to Prometheus scrape config:

Grafana Dashboard

Import the ZeroClaw dashboard:
Dashboard includes:
  • Request rate and latency
  • Tool execution statistics
  • Token usage and costs
  • Error rates
  • System resources

OpenTelemetry

Export traces and metrics to OTLP collectors:
Build with OTLP support:

Trace Example

Health Checks

Liveness Probe

Check if the service is running:
Response:

Readiness Probe

Check if the service is ready to handle requests:
Checks:
  • Provider connectivity
  • Channel health
  • Memory backend

Kubernetes Probes

Alerting

Prometheus Alerts

Create alerting rules:

Notification Channels

Configure Alertmanager:

Cost Tracking

Monitor API costs:
Output:
Cost metrics:

Performance Tuning

Query Latency

Track provider response times:

Tool Execution

Monitor tool performance: