Skip to content

feat: add prebuilds metrics collector #17547

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 6 commits into from
Apr 28, 2025
Merged

feat: add prebuilds metrics collector #17547

merged 6 commits into from
Apr 28, 2025

Conversation

dannykopping
Copy link
Contributor

@dannykopping dannykopping commented Apr 23, 2025

Copy link
Contributor

@SasSwart SasSwart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just pointing out a TODO that we still need to look into. Otherwise, looks good.

@dannykopping dannykopping force-pushed the dk/prebuilds-metrics branch from 45a0672 to 80fba7d Compare April 24, 2025 10:14
@dannykopping dannykopping requested a review from mafredri April 24, 2025 12:42
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small suggestions/nits, otherwise LGTM

@dannykopping dannykopping force-pushed the dk/prebuilds-metrics branch 2 times, most recently from a69ee41 to 7791f50 Compare April 25, 2025 07:51
Base automatically changed from dk/enable-prebuilds to main April 25, 2025 09:07
@dannykopping dannykopping force-pushed the dk/prebuilds-metrics branch from d43c13d to 00ebdde Compare April 25, 2025 09:12
Signed-off-by: Danny Kopping <dannykopping@gmail.com>

Reverting unnecessary changes that crept in

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
@dannykopping dannykopping force-pushed the dk/prebuilds-metrics branch from 00ebdde to 1d66ade Compare April 25, 2025 09:13
@dannykopping dannykopping marked this pull request as ready for review April 25, 2025 09:14
@dannykopping dannykopping requested a review from mafredri April 25, 2025 09:43
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nit/observation, otherwise LGTM!

{"coderd_prebuilt_workspaces_eligible", ptr.To(0.0), false},
},
templateDeleted: []bool{false},
eligible: []bool{false},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing any test-cases where we'd need slices for deleted/eligible and it probably isn't too compatible with the way expected metrics are defined. Consider simplifying (helps reduce complexity of test body too)?

@dannykopping dannykopping merged commit e0483e3 into main Apr 28, 2025
36 checks passed
@dannykopping dannykopping deleted the dk/prebuilds-metrics branch April 28, 2025 10:29
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prebuilds Metrics
3 participants