summaryrefslogtreecommitdiffstats
path: root/internal/ratelimit/limiter.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 12:45:20 -0800
committerbndw <ben@bdw.to>2026-02-14 12:45:20 -0800
commit9711b2b177959c0ea8e5119bead16dfd40b12c47 (patch)
treef4457972eafca456d658736b9bfd603002ca096b /internal/ratelimit/limiter.go
parent860a662ebdfd9b2bd27a754283a25427d13fecbc (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/ratelimit/limiter.go')
0 files changed, 0 insertions, 0 deletions