Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

/_cluster/nodes -> /_nodes according to the breaking changes in ES RC1 #8

Closed
wants to merge 1 commit into from

2 participants

@vasily-kirichenko

No description provided.

@vasily-kirichenko

I'm not sure this is the right solution though.

@vasily-kirichenko

Shard stat still does not show:
paramedic-bug

@karmi karmi closed this pull request from a commit
@vasily-kirichenko vasily-kirichenko Use `/_nodes` to get nodes info+stats for compatibility with ElasticS…
…earch 1.0

`/_cluster/nodes -> /_nodes according to the breaking changes in ES RC1

Closes #8
7482067
@karmi karmi closed this in 7482067
@karmi
Owner

Thanks!, yeah, it makes sense to use /_nodes to stay compatible with > 1.0.

Regarding shard stats, they're quite impaired anyway, these would have to be rewritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +3 −3 js/app.js
  2. +2 −2 js/libs/cubism.elasticsearch.js
View
6 js/app.js
@@ -148,7 +148,7 @@ App.nodes = Ember.ArrayController.create({
node
.set("disk", data.nodes[node_id]['indices']['store']['size'])
.set("docs", data.nodes[node_id]['indices']['docs']['count'])
- .set("load", data.nodes[node_id]['os']['load_average'][0].toFixed(3))
+ .set("load", data.nodes[node_id]['os']['cpu']['usage'].toFixed(3))
.set("cpu", data.nodes[node_id]['process']['cpu']['percent'])
.set("jvm_heap_used", data.nodes[node_id]['jvm']['mem']['heap_used'])
}
@@ -156,8 +156,8 @@ App.nodes = Ember.ArrayController.create({
};
App.set("refreshing", true)
- $.getJSON(App.elasticsearch_url+"/_cluster/nodes?jvm", __load_nodes_info);
- $.getJSON(App.elasticsearch_url+"/_cluster/nodes/stats?indices&os&process&jvm", __load_nodes_stats);
+ $.getJSON(App.elasticsearch_url+"/_nodes?jvm", __load_nodes_info);
+ $.getJSON(App.elasticsearch_url+"/_nodes/stats?indices&os&process&jvm", __load_nodes_stats);
}
});
View
4 js/libs/cubism.elasticsearch.js
@@ -209,7 +209,7 @@ cubism.elasticsearch = function(context, options, callback) {
// Load information about ElasticSearch nodes from the Nodes Info API
// [http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-info.html]
//
- d3.json(options.host + "/_cluster/nodes", function(cluster) {
+ d3.json(options.host + "/_nodes", function(cluster) {
source.cluster = cluster
source.node_names = d3.keys(cluster.nodes)
@@ -267,7 +267,7 @@ cubism.elasticsearch = function(context, options, callback) {
})
source.toString = function() { return options.host };
- source.url = function() { return options.host + "/_cluster/nodes/stats?all" };
+ source.url = function() { return options.host + "/_nodes/stats?all" };
return source;
};
Something went wrong with that request. Please try again.