From 829ea6ad28b7c052b6b7ef8ed3257319652e64dc Mon Sep 17 00:00:00 2001 From: Milan Pavlik Date: Mon, 25 Apr 2022 07:10:51 +0000 Subject: [PATCH] [ws-manager-bridge] Fix workspace instance update started total metric incrementing --- components/ws-manager-bridge/src/prometheus-metrics-exporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ws-manager-bridge/src/prometheus-metrics-exporter.ts b/components/ws-manager-bridge/src/prometheus-metrics-exporter.ts index c17b4a3911d56b..d9ae85edaf42c6 100644 --- a/components/ws-manager-bridge/src/prometheus-metrics-exporter.ts +++ b/components/ws-manager-bridge/src/prometheus-metrics-exporter.ts @@ -127,7 +127,7 @@ export class PrometheusMetricsExporter { } reportWorkspaceInstanceUpdateStarted(dbWrite: boolean, workspaceCluster: string, type: WorkspaceType): void { - this.workspaceInstanceUpdateStartedTotal.labels(String(dbWrite), workspaceCluster, WorkspaceType[type]); + this.workspaceInstanceUpdateStartedTotal.labels(String(dbWrite), workspaceCluster, WorkspaceType[type]).inc(); } reportWorkspaceInstanceUpdateCompleted(