From d74d79b14c99e26efbfd8b200ef7310b4fa2a967 Mon Sep 17 00:00:00 2001 From: Ola Aunronning Date: Tue, 12 Mar 2024 09:31:02 +0100 Subject: Expiry metrics are counters, not gauges --- .../java/ai/vespa/metrics/set/InfrastructureMetricSet.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java b/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java index 61ab8cea941..38a1b252df9 100644 --- a/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java +++ b/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java @@ -68,11 +68,11 @@ public class InfrastructureMetricSet { addMetric(metrics, ConfigServerMetrics.CLUSTER_LOAD_IDEAL_MEMORY.max()); addMetric(metrics, ConfigServerMetrics.CLUSTER_LOAD_IDEAL_DISK.max()); addMetric(metrics, ConfigServerMetrics.NODES_EMPTY_EXCLUSIVE.max()); - addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DEPROVISIONED.sum()); - addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DIRTY.sum()); - addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_INACTIVE.sum()); - addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_PROVISIONED.sum()); - addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_RESERVED.sum()); + addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DEPROVISIONED.count()); + addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_DIRTY.count()); + addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_INACTIVE.count()); + addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_PROVISIONED.count()); + addMetric(metrics, ConfigServerMetrics.NODES_EXPIRED_RESERVED.count()); addMetric(metrics, ConfigServerMetrics.WANT_TO_REBOOT.max()); addMetric(metrics, ConfigServerMetrics.WANT_TO_RESTART.max()); addMetric(metrics, ConfigServerMetrics.WANT_TO_RETIRE.max()); -- cgit v1.2.3