Skip to content

Convert agent stats to workspaceapp stats #13152

Closed
@f0ssel

Description

@f0ssel
  • In StatsAPI, modify UpdateStats to call workspaceapps.StatsCollector.Collect() converting the agentapi.Stats into workspaceapps.StatsReport

    • The main fields we are interested in here are the SessionCount by ssh, sftp, vscode, jetbrains, reconnecting_pty.
    ⚠️ There is no way for CLI-based reporting to differentiate between `ssh` and `sftp` activity, which is currently tracked by the Coder agent. The agent will need to continue sending information regarding SSH or SFTP usage in order for `StatsCollector` to report correctly.
    • We will still want to insert rows into workspace_agent_stats for a cutover period.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions