Skip to content

Guess the SFU's metrics URL from SFU_WS_HOST (GRYT-2005) - #359

Merged
grytchat merged 1 commit into
mainfrom
claude/GRYT-2005-metrics-default
Nov 3, 2026
Merged

grytchat merged 1 commit into
mainfrom
claude/GRYT-2005-metrics-default

Conversation

@grytchat

@grytchat grytchat commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

With SFU_METRICS_URL unset, server:diagnostics now reads http://<SFU_WS_HOST's host>:9091/metrics. That's where the SFU serves its metrics by default, so a normal compose setup (ws://sfu:9092) gets the SFU numbers with no config.

The env var still wins. Host-networked setups like beta and prod on prod-host set it, because their SFU_WS_HOST points at a published port, not at the container. A wrong guess finds no gryt_sfu_ lines and shows none. It doesn't show anything wrong.

Look at: the guess makes the server fetch port 9091 on whatever host SFU_WS_HOST names, but only when an owner asks for diagnostics. That host comes from the operator's own config.

🤖 Generated with Claude Code

Without SFU_METRICS_URL, server:diagnostics now reads port 9091 on the
host SFU_WS_HOST names, which is where the SFU serves them by default.
A normal compose setup (ws://sfu:9092) gets its SFU numbers with no
config. Host-networked setups like dev.lan's still set the env var; a
wrong guess finds no gryt_sfu_ lines and shows none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit f0ec81c into main Nov 3, 2026
7 checks passed
@grytchat
grytchat deleted the claude/GRYT-2005-metrics-default branch November 3, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant