You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my testing, Toolbox forwards through SSH (i.e. through Coder) a remote port associated with the IDE
running in server mode, to localhost in order for the server (i.e. the remote IDE) to communicate with
JBClient. Unlike with Gateway, Toolbox manages to reuse the SSH connection, and it doesn't open a separate
one for port forwarding.
From Gateway we inherited two ssh hostnames per each workspace, one for background connections that did not
involve running IDEs. Coder discards the bg. connection from the collected metrics in order to
avoid double counting. Since Toolbox manages to re-use the connection we don't need to worry
about double counting.
For this particular change, I deployed the latest Coder version with prometheus metrics and experiments
enabled (i.e. --prometheus-enable --prometheus-collect-agent-stats --experiments=workspace-usage) and made the following experiment:
1. Opened up Toolbox, logged into Coder. At this point:
- agent_sessions_total and coderd_agentstats_session_count_jetbrains were missing from prometheus metrics
- jetbrains session count from api/v2/deployment/stats showed 0
2. Opened up a Workspace at which point Toolbox established the SSH connection:
- agent_sessions_total and coderd_agentstats_session_count_jetbrains increased to 1
- jetbrains session count from api/v2/deployment/stats increased to 1 as well
3. Hit the install button on RustRover, everything stayed unchanged
4. Open RustRover, nothing changes in the stats.
0 commit comments