We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6514952 commit 16a0510Copy full SHA for 16a0510
src/main/java/org/compuscene/metrics/prometheus/PrometheusMetricsCollector.java
@@ -34,7 +34,7 @@ public PrometheusMetricsCollector(final Client client) {
34
NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("_local").all();
35
NodesStatsResponse nodesStatsResponse = this.client.admin().cluster().nodesStats(nodesStatsRequest).actionGet();
36
37
- cluster = nodesStatsResponse.getClusterName().toString();
+ cluster = nodesStatsResponse.getClusterName().value();
38
node = nodesStatsResponse.getNodes().get(0).getHostname();
39
catalog = new PrometheusMetricsCatalog(cluster, "es_");
40
0 commit comments