Skip to content

Commit e961063

Browse files
Rename label for delayed unassigned shards
1 parent 11434b2 commit e961063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private void updateClusterMetrics(ClusterHealthResponse chr) {
109109

110110
catalog.setClusterGauge("cluster_shards_number", chr.getActiveShards(), "active");
111111
catalog.setClusterGauge("cluster_shards_number", chr.getActivePrimaryShards(), "active_primary");
112-
catalog.setClusterGauge("cluster_shards_number", chr.getDelayedUnassignedShards(), "unassigned");
112+
catalog.setClusterGauge("cluster_shards_number", chr.getDelayedUnassignedShards(), "delayed_unassigned");
113113
catalog.setClusterGauge("cluster_shards_number", chr.getInitializingShards(), "initializing");
114114
catalog.setClusterGauge("cluster_shards_number", chr.getRelocatingShards(), "relocating");
115115
catalog.setClusterGauge("cluster_shards_number", chr.getUnassignedShards(), "unassigned");

0 commit comments

Comments
 (0)