-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[server] Add metric for completed image builds #14296
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
Conversation
started the job as gitpod-build-af-metric-for-server-image-build-completions.11 because the annotations in the pull request description changed |
/hold for dependency #14204 |
@@ -1302,6 +1307,11 @@ export class WorkspaceStarter { | |||
} | |||
} | |||
|
|||
// Register a successful image build only if the image actually needed to be built; ie the build was not a no-op. | |||
if (result.actuallyNeedsBuild) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way to avoid this case would be to export both the started
and completed
metrics with a label of needed_build
. This would still keep it semantic, and would give you the ability to filter these out in the SLO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Will need rebase when dependency lands
Add a counter to track the number of image builds recorded as completed by `server`, broken down by outcome (succeeded, failed).
05e0478
to
371d0c2
Compare
started the job as gitpod-build-af-metric-for-server-image-build-completions.13 because the annotations in the pull request description changed |
Description
Add a counter for completed image builds
gitpod_server_image_builds_completed_total
toserver
with dimensions for successful and failed image builds.Increment the relevant counter when an image build succeeds or fails.
Related Issue(s)
Part of #12960
How to test
(tbd once preview envs are working again).
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide