From 55b4b807f68f5a77f52865257c58279c6ac20f61 Mon Sep 17 00:00:00 2001 From: Mark McGarry Date: Tue, 11 Jan 2022 15:50:13 +0000 Subject: [PATCH] increment prom counter even when only notifying on failure --- pkg/kubernetes/watch_deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubernetes/watch_deployment.go b/pkg/kubernetes/watch_deployment.go index 62c3525..40cb8dd 100644 --- a/pkg/kubernetes/watch_deployment.go +++ b/pkg/kubernetes/watch_deployment.go @@ -127,9 +127,9 @@ func (b *deploymentInformer) OnUpdate(old, new interface{}) { log.Errorf(message) sentry.CaptureMessage(message) } - return } deploymentProcessedTotal.Inc() + return } // Get the DeploymentCondition and sort them based on time