Skip to content

feat: add metrics to workspace agent scripts #11132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Dec 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove extra words
  • Loading branch information
Emyrk committed Dec 13, 2023
commit c5da250cc9b77ddb6ee8ca0dfb9ab5a43db7f3d4
6 changes: 3 additions & 3 deletions agent/agentscripts/agentscripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ type Runner struct {
initialized atomic.Bool
scripts []codersdk.WorkspaceAgentScript

// scriptsExecuted includes all scripts executed by the workspace agent.
// Agents execute startup scripts, and scripts on a cron schedule. Both of
// which will increment this counter.
// scriptsExecuted includes all scripts executed by the workspace agent. Agents
// execute startup scripts, and scripts on a cron schedule. Both will increment
// this counter.
scriptsExecuted *prometheus.CounterVec
}

Expand Down