diff options
| author | bndw <ben@bdw.to> | 2026-02-14 12:45:20 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 12:45:20 -0800 |
| commit | 9711b2b177959c0ea8e5119bead16dfd40b12c47 (patch) | |
| tree | f4457972eafca456d658736b9bfd603002ca096b /internal/handler/websocket/index.go | |
| parent | 860a662ebdfd9b2bd27a754283a25427d13fecbc (diff) | |
fix: dashboard prefix detection with Go runtime metrics
Bug: Dashboard showed zeros because it detected "go" as the prefix instead
of "muxstr" when Go runtime metrics appeared first in the metrics list.
Fix: Search for the first metric containing "_relay_" to properly detect
the namespace (muxstr, nostr-grpc, etc.) instead of using the first metric
in the alphabetical list.
Before: Object.keys(metrics)[0] → "go_gc_..." → prefix = "go"
After: Find metric with "_relay_" → "muxstr_relay_..." → prefix = "muxstr"
This fixes the dashboard displaying zeros when metrics data is present.
Diffstat (limited to 'internal/handler/websocket/index.go')
0 files changed, 0 insertions, 0 deletions
