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) aremote port associated with the IDErunning in server mode, to localhost in order for the server (i.e. theremote IDE) to communicate withJBClient. Unlike with Gateway, Toolbox manages to reuse the SSHconnection, and it doesn't open a separateone for port forwarding.From Gateway we inherited two ssh hostnames per each workspace, one forbackground connections that did notinvolve running IDEs. Coder discards the bg. connection from thecollected metrics in order toavoid double counting. Since Toolbox manages to re-use the connection wedon't need to worryabout double counting.For this particular change, I deployed the latest Coder version withprometheus metrics and experimentsenabled (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_jetbrainswere missing from prometheus metrics- jetbrains session count from api/v2/deployment/stats showed 02. Opened up a Workspace at which point Toolbox established the SSHconnection:- agent_sessions_total and coderd_agentstats_session_count_jetbrainsincreased to 1- jetbrains session count from api/v2/deployment/stats increased to 1 aswell3. Hit the install button on RustRover, everything stayed unchanged4. Open RustRover, nothing changes in the stats.