Skip to content

Prebuilds Metrics #509

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

Open
Tracked by #516
SasSwart opened this issue Mar 14, 2025 · 0 comments · May be fixed by coder/coder#17547
Open
Tracked by #516

Prebuilds Metrics #509

SasSwart opened this issue Mar 14, 2025 · 0 comments · May be fixed by coder/coder#17547
Assignees

Comments

@SasSwart
Copy link

The prebuild system will create and destroy workspaces continuously. This has an impact on real-world infrastructure costs. It is therefore important to have the necessary insight to ensure that it operates nominally.

Add metrics:

coderd_prebuilds_created

Description:
The number of prebuilds that have been created to meet the desired count set by presets.
Type: counter
Labels: template_name, preset_name

coderd_prebuilds_desired

Description:
The number of prebuilds desired by each preset of each template.
Type: gauge
Labels: template_name, preset_name

coderd_prebuilds_eligible

Description:
The number of eligible prebuilds. Eligible prebuilds are prebuilds that are ready to be claimed by a user.
Type: gauge
Labels: template_name, preset_name

coderd_prebuilds_claimed

Description:
The number of prebuilds that were claimed by a user. Each count means that a user created a workspace using a preset and was assigned a prebuild instead of a brand new workspace.
Type: counter
Labels: template_name, preset_name

coderd_prebuilds_failed

Description:
The number of prebuilds that failed to build during creation.
Type: counter
Labels: template_name, preset_name

coderd_prebuilds_running

Description:
The number of prebuilds that are currently running. Running prebuilds have successfully started, but they may not be ready to be claimed by a user yet.
Type: gauge
Labels: template_name, preset_name

@dannykopping dannykopping transferred this issue from coder/coder Mar 17, 2025
@SasSwart SasSwart self-assigned this Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants