File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export function registerServerMetrics(registry: prometheusClient.Registry) {
21
21
registry . registerMetric ( instanceStartsFailedTotal ) ;
22
22
registry . registerMetric ( prebuildsStartedTotal ) ;
23
23
registry . registerMetric ( stripeClientRequestsCompletedDurationSeconds ) ;
24
+ registry . registerMetric ( imageBuildsStartedTotal ) ;
24
25
}
25
26
26
27
const loginCounter = new prometheusClient . Counter ( {
@@ -176,3 +177,12 @@ export const stripeClientRequestsCompletedDurationSeconds = new prometheusClient
176
177
export function observeStripeClientRequestsCompleted ( operation : string , outcome : string , durationInSeconds : number ) {
177
178
stripeClientRequestsCompletedDurationSeconds . observe ( { operation, outcome } , durationInSeconds ) ;
178
179
}
180
+
181
+ export const imageBuildsStartedTotal = new prometheusClient . Counter ( {
182
+ name : "gitpod_server_image_builds_started_total" ,
183
+ help : "counter of the total number of image builds started on server" ,
184
+ } ) ;
185
+
186
+ export function increaseImageBuildsStartedTotal ( ) {
187
+ imageBuildsStartedTotal . inc ( ) ;
188
+ }
You can’t perform that action at this time.
0 commit comments