@openclaw/diagnostics-prometheus 2026.5.22 → 2026.5.24-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -252,7 +252,17 @@ function toolExecutionLabels(evt) {
252
252
  error_category: evt.type === "tool.execution.error" ? lowCardinalityLabel(evt.errorCategory, "other") : "none",
253
253
  outcome: evt.type === "tool.execution.error" ? "error" : "completed",
254
254
  params_kind: lowCardinalityLabel(evt.paramsSummary?.kind),
255
- tool: lowCardinalityLabel(evt.toolName, "tool")
255
+ tool: lowCardinalityLabel(evt.toolName, "tool"),
256
+ tool_owner: lowCardinalityLabel(evt.toolOwner, "none"),
257
+ tool_source: lowCardinalityLabel(evt.toolSource, "core")
258
+ };
259
+ }
260
+ function skillLabels(evt) {
261
+ return {
262
+ activation: lowCardinalityLabel(evt.activation, "unknown"),
263
+ agent: lowCardinalityLabel(evt.agentId),
264
+ skill: lowCardinalityLabel(evt.skillName, "skill"),
265
+ source: lowCardinalityLabel(evt.skillSource)
256
266
  };
257
267
  }
258
268
  function harnessLabels(evt) {
@@ -334,6 +344,9 @@ function recordDiagnosticEvent(store, evt, metadata) {
334
344
  store.histogram("openclaw_tool_execution_duration_seconds", "Tool execution duration in seconds.", toolExecutionLabels(evt), seconds(evt.durationMs));
335
345
  store.counter("openclaw_tool_execution_total", "Tool executions completed by outcome.", toolExecutionLabels(evt));
336
346
  return;
347
+ case "skill.used":
348
+ store.counter("openclaw_skill_used_total", "Skills used by agent runs.", skillLabels(evt));
349
+ return;
337
350
  case "harness.run.completed":
338
351
  case "harness.run.error":
339
352
  store.histogram("openclaw_harness_run_duration_seconds", "Agent harness run duration in seconds.", harnessLabels(evt), seconds(evt.durationMs));
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/diagnostics-prometheus",
3
- "version": "2026.5.22",
3
+ "version": "2026.5.24-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/diagnostics-prometheus",
9
- "version": "2026.5.22"
9
+ "version": "2026.5.24-beta.2"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/diagnostics-prometheus",
3
- "version": "2026.5.22",
3
+ "version": "2026.5.24-beta.2",
4
4
  "description": "OpenClaw diagnostics Prometheus exporter",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.4.25"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.5.22"
21
+ "pluginApi": ">=2026.5.24-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.5.22"
24
+ "openclawVersion": "2026.5.24-beta.2"
25
25
  },
26
26
  "release": {
27
27
  "publishToClawHub": true,
@@ -37,7 +37,7 @@
37
37
  "npm-shrinkwrap.json"
38
38
  ],
39
39
  "peerDependencies": {
40
- "openclaw": ">=2026.5.22"
40
+ "openclaw": ">=2026.5.24-beta.2"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "openclaw": {