Skip to content

Prebuilds Metrics #509

Closed
coder/coder
#17547
Closed
@SasSwart

Description

@SasSwart

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions