mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 11:46:05 +00:00
* fix(diagnostics-prometheus): use truncateUtf16Safe for error message truncation The safeErrorMessage function uses naive .slice(0, 500) on error messages which can split surrogate pairs. Replace with truncateUtf16Safe(). * test(diagnostics-prometheus): cover UTF-16-safe errors --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
@openclaw/diagnostics-prometheus
Official Prometheus diagnostics exporter for OpenClaw.
This plugin exposes OpenClaw Gateway runtime metrics in Prometheus text format for Prometheus, Grafana, VictoriaMetrics, and compatible scrapers.
Install
openclaw plugins install @openclaw/diagnostics-prometheus
Restart the Gateway after installing or updating the plugin.
Configure
Enable the plugin and set the scrape endpoint options in plugins.entries.diagnostics-prometheus.config.
The full config surface, metric names, and scrape examples live in the docs:
Package
- Plugin id:
diagnostics-prometheus - Package:
@openclaw/diagnostics-prometheus - Minimum OpenClaw host:
2026.4.25