From b83da1e73814124a51559eb7d4c9c6b6c62733e1 Mon Sep 17 00:00:00 2001 From: Daniel Wright Date: Thu, 10 Jun 2021 08:10:56 +1000 Subject: [PATCH] Rename label for delayed unassigned shards --- .../metrics/prometheus/PrometheusMetricsCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java b/src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java index 4e0394c2..4f3c4a0e 100644 --- a/src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java +++ b/src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java @@ -109,7 +109,7 @@ private void updateClusterMetrics(ClusterHealthResponse chr) { catalog.setClusterGauge("cluster_shards_number", chr.getActiveShards(), "active"); catalog.setClusterGauge("cluster_shards_number", chr.getActivePrimaryShards(), "active_primary"); - catalog.setClusterGauge("cluster_shards_number", chr.getDelayedUnassignedShards(), "unassigned"); + catalog.setClusterGauge("cluster_shards_number", chr.getDelayedUnassignedShards(), "delayed_unassigned"); catalog.setClusterGauge("cluster_shards_number", chr.getInitializingShards(), "initializing"); catalog.setClusterGauge("cluster_shards_number", chr.getRelocatingShards(), "relocating"); catalog.setClusterGauge("cluster_shards_number", chr.getUnassignedShards(), "unassigned");