OpenClaw性能监控配置

启用监控

启用Prometheus监控:配置monitoring: enabled: true, port: 9090。启动后访问/metrics端点获取监控指标。

关键指标

关键指标:openclaw_requests_total请求总数、openclaw_request_duration_seconds响应时间、openclaw_errors_total错误数、openclaw_skill_executions Skill执行统计。

Grafana集成

集成Grafana可视化:导入Dashboard ID 12345。配置Prometheus数据源。Dashboard展示实时和历史数据趋势。

自定义指标

添加自定义指标:在Skill中使用metrics.counter('my_skill_calls').inc()。自定义指标帮助监控特定业务逻辑。

💬 📞