openclaw/extensions/diagnostics-prometheus
huangjianxiong fae5421f81
fix(diagnostics-prometheus): use truncateUtf16Safe for error message truncation (#102591)
* 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>
2026-07-09 11:04:47 +01:00
..
src fix(diagnostics-prometheus): use truncateUtf16Safe for error message truncation (#102591) 2026-07-09 11:04:47 +01:00
api.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
index.ts docs: document small extension sources 2026-06-04 21:02:07 -04:00
npm-shrinkwrap.json chore(release): close out 2026.6.11 on main 2026-06-30 11:31:08 -07:00
openclaw.plugin.json fix: add ClawHub plugin display names (#87354) 2026-05-27 12:37:35 -05:00
package.json chore(release): close out 2026.6.11 on main 2026-06-30 11:31:08 -07:00
README.md docs(plugins): add external package readmes 2026-05-29 21:00:29 +01:00
tsconfig.json

@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