Skip to content

Commit 16a0510

Browse files
committed
Fixed cluster name naming
1 parent 6514952 commit 16a0510

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public PrometheusMetricsCollector(final Client client) {
3434
NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("_local").all();
3535
NodesStatsResponse nodesStatsResponse = this.client.admin().cluster().nodesStats(nodesStatsRequest).actionGet();
3636

37-
cluster = nodesStatsResponse.getClusterName().toString();
37+
cluster = nodesStatsResponse.getClusterName().value();
3838
node = nodesStatsResponse.getNodes().get(0).getHostname();
3939
catalog = new PrometheusMetricsCatalog(cluster, "es_");
4040

0 commit comments

Comments
 (0)