Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 7482067dfb7009634bcf7008851b117a51f7cf39 1 parent 21219b0
Vasily Kirichenko vasily-kirichenko authored committed
Showing with 4 additions and 4 deletions.
  1. +2 −2 js/app.js
  2. +2 −2 js/libs/cubism.elasticsearch.js
4 js/app.js
View
@@ -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);
}
});
4 js/libs/cubism.elasticsearch.js
View
@@ -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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.