From 19a2797aa5754fdcb4518d40af652b0fe1e25237 Mon Sep 17 00:00:00 2001 From: bjormel Date: Mon, 5 Feb 2024 12:05:47 +0000 Subject: Expose expire metrics --- metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'metrics') diff --git a/metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java b/metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java index 94731945038..c413dc5e7d7 100644 --- a/metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java +++ b/metrics/src/main/java/ai/vespa/metrics/ConfigServerMetrics.java @@ -56,6 +56,11 @@ public enum ConfigServerMetrics implements VespaMetrics { NODES_NON_ACTIVE_FRACTION("nodes.nonActiveFraction", Unit.NODE, "The fraction of non-active nodes vs total nodes in a cluster"), NODES_EXCLUSIVE_SWITCH_FRACTION("nodes.exclusiveSwitchFraction", Unit.FRACTION, "The fraction of nodes in a cluster on exclusive network switches"), NODES_EMPTY_EXCLUSIVE("nodes.emptyExclusive", Unit.NODE, "The number of exclusive hosts that do not have any nodes allocated to them"), + NODES_EXPIRED_DEPROVISIONED("nodes.expired.deprovisioned", Unit.NODE, "The number of deprovisioned nodes that have expired"), + NODES_EXPIRED_DIRTY("nodes.expired.dirty", Unit.NODE, "The number of dirty nodes that have expired"), + NODES_EXPIRED_INACTIVE("nodes.expired.inactive", Unit.NODE, "The number of inactive nodes that have expired"), + NODES_EXPIRED_PROVISIONED("nodes.expired.provisioned", Unit.NODE, "The number of provisioned nodes that have expired"), + NODES_EXPIRED_RESERVED("nodes.expired.reserved", Unit.NODE, "The number of reserved nodes that have expired"), CLUSTER_COST("cluster.cost", Unit.DOLLAR_PER_HOUR, "The cost of the nodes allocated to a certain cluster, in $/hr"), CLUSTER_LOAD_IDEAL_CPU("cluster.load.ideal.cpu", Unit.FRACTION, "The ideal cpu load of a certain cluster"), -- cgit v1.2.3 From 4944fc97c6fdfae6a12c6d99ceab39992a03046a Mon Sep 17 00:00:00 2001 From: bjormel Date: Mon, 5 Feb 2024 13:16:33 +0000 Subject: Now, really expose the metrics --- .../src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'metrics') 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 a9d078e2a44..61ab8cea941 100644 --- a/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java +++ b/metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java @@ -68,6 +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.WANT_TO_REBOOT.max()); addMetric(metrics, ConfigServerMetrics.WANT_TO_RESTART.max()); addMetric(metrics, ConfigServerMetrics.WANT_TO_RETIRE.max()); -- cgit v1.2.3