Skip to content

VS Code/JetBrains plugins: Make resources usage more visible #11720

Closed as duplicate
Closed as duplicate

Description

@gtaylor

The VS Code and JetBrains IDE plugins do not show workspace resource in a visible spot. The user needs to dig into the workspace list panel and find and expand their current workspace to see resource usage.

I'd suggest adding CPU, memory, disk usage, and etc to the lower IDE bar near where the tunnel latency is:

image

This is useful in cases where a user unknowingly saturates one or more resources without realizing. For example: we've had a few users use all of their disk space, only to spend several minutes debugging why everything started breaking.

As an additional consideration: perhaps disk space and mem usage could gently draw attention downwards when they stay maxed. A different text color for the metric?

Activity

  1. matifali commented on Jan 20, 2024

    @matifali
    Contributor

    @gtaylor Currently, all agent metadata fields are user-controlled. Coder can't know if a template has them defined and with what keys. We can either show all of them or none.

    We may show all of them as an expandable entry where the first metadata item always shows, and others expand if a user clicks on it and optionally blinks or changes color in case of hitting limits.

    @code-asher, do we have a way to display agent metadata in JetBrains IDEs?

  2. code-asher commented on Jan 22, 2024

    @code-asher
    Member

    Not at the moment, unfortunately. We would need to write a separate plugin that gets deployed on the backend somehow, as we are not able to manipulate the IDE from the Gateway plugin. See also coder/jetbrains-backend-coder#33.

  3. gtaylor commented on Jan 26, 2024

    @gtaylor
    Author

    Currently, all agent metadata fields are user-controlled. Coder can't know if a template has them defined and with what keys. We can either show all of them or none.

    @matifali That could work, especially if the user is able to hide or show them individually based on their preferences or maybe even a setting that we could ship via our IDE management tooling. Though, that certainly balloons the feature scope!

    Not at the moment, unfortunately. We would need to write a separate plugin that gets deployed on the backend somehow, as we are not able to manipulate the IDE from the Gateway plugin. See also coder/jetbrains-backend-coder#33.

    @code-asher Bummer. Stepping back a bit, the problem we're trying to solve is a user exhausting a resource without realizing it. Of the resources that we care about, disk space exhaustion is probably the most disruptive since it can lead to unpredictable failures. Perhaps a balloon notification that disk space is getting low and another when it's exhausted may solve the problem? These should be doable without a separate plugin.

  4. code-asher commented on Jan 27, 2024

    @code-asher
    Member

    That sounds like a good workaround to me! I opened coder/jetbrains-coder#352

  5. matifali commented on Jan 27, 2024

    @matifali
    Contributor

    I created coder/vscode-coder#191 to track this request for vscode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions