From f01b300955cf9e65fd3ee6f22a02ea73c4a32a47 Mon Sep 17 00:00:00 2001 From: Nikita Vaniasin Date: Wed, 31 Aug 2022 13:21:34 +0200 Subject: [PATCH] Fix the reporting of DeploymentImmutableErrors counter on metrics --- pkg/deployment/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/deployment/metrics.go b/pkg/deployment/metrics.go index 8f22de29c..edc117f1b 100644 --- a/pkg/deployment/metrics.go +++ b/pkg/deployment/metrics.go @@ -47,7 +47,7 @@ func (d *Deployment) CollectMetrics(m metrics.PushMetric) { m.Push(metric_descriptions.ArangodbOperatorAgencyIndexGauge(float64(d.metrics.Agency.Index), d.namespace, d.name)) m.Push(metric_descriptions.ArangodbOperatorResourcesArangodeploymentValidationErrorsCounter(float64(d.metrics.Errors.DeploymentValidationErrors), d.namespace, d.name)) - m.Push(metric_descriptions.ArangodbOperatorResourcesArangodeploymentImmutableErrorsCounter(float64(d.metrics.Errors.DeploymentValidationErrors), d.namespace, d.name)) + m.Push(metric_descriptions.ArangodbOperatorResourcesArangodeploymentImmutableErrorsCounter(float64(d.metrics.Errors.DeploymentImmutableErrors), d.namespace, d.name)) if d.metrics.Deployment.Accepted { m.Push(metric_descriptions.ArangodbOperatorResourcesArangodeploymentAcceptedGauge(1, d.namespace, d.name))