15 Commits

Author SHA1 Message Date
Shay Banon
5fa66cd592 Node Stats: Allow to explicitly get specific indices level node stats element
closes #2871
2013-04-07 20:22:48 -07:00
David Pilato
36b92be212 List of existing plugins with Node Info API
We want to display information about loaded plugins in Node Info API using plugin option:

```sh
curl http://localhost:9200/_nodes?plugin=true
```

For example, on a 4 nodes cluster, it could provide the following output:

```javascript
{
  "ok" : true,
  "cluster_name" : "test-cluster-MacBook-Air-de-David.local",
  "nodes" : {
    "lodYfbFTRnmwE6rjWGGyQQ" : {
      "name" : "node1",
      "transport_address" : "inet[/172.18.58.139:9300]",
      "hostname" : "MacBook-Air-de-David.local",
      "version" : "0.90.0.Beta2-SNAPSHOT",
      "http_address" : "inet[/172.18.58.139:9200]",
      "plugins" : [ ]
    },
    "hJLXmY_NTrCytiIMbX4_1g" : {
      "name" : "node4",
      "transport_address" : "inet[/172.18.58.139:9303]",
      "hostname" : "MacBook-Air-de-David.local",
      "version" : "0.90.0.Beta2-SNAPSHOT",
      "http_address" : "inet[/172.18.58.139:9203]",
      "plugins" : [ {
        "name" : "test-plugin",
        "description" : "test-plugin description",
        "site" : true,
        "jvm" : false
      }, {
        "name" : "test-no-version-plugin",
        "description" : "test-no-version-plugin description",
        "site" : true,
        "jvm" : false
      }, {
        "name" : "dummy",
        "description" : "No description found for dummy.",
        "url" : "/_plugin/dummy/",
        "site" : false,
        "jvm" : true
      } ]
    },
    "bnoySsBfTrSzbDRZ0BFHvg" : {
      "name" : "node2",
      "transport_address" : "inet[/172.18.58.139:9301]",
      "hostname" : "MacBook-Air-de-David.local",
      "version" : "0.90.0.Beta2-SNAPSHOT",
      "http_address" : "inet[/172.18.58.139:9201]",
      "plugins" : [ {
        "name" : "dummy",
        "description" : "This is a description for a dummy test site plugin.",
        "url" : "/_plugin/dummy/",
        "site" : false,
        "jvm" : true
      } ]
    },
    "0Vwil01LSfK9YgRrMce3Ug" : {
      "name" : "node3",
      "transport_address" : "inet[/172.18.58.139:9302]",
      "hostname" : "MacBook-Air-de-David.local",
      "version" : "0.90.0.Beta2-SNAPSHOT",
      "http_address" : "inet[/172.18.58.139:9202]",
      "plugins" : [ {
        "name" : "test-plugin",
        "description" : "test-plugin description",
        "site" : true,
        "jvm" : false
      } ]
    }
  }
}
```

Information are cached for 10 seconds by default. Modify `plugins.info_refresh_interval` property if needed.
Setting `plugins.info_refresh_interval` to `-1` will cause infinite caching.
Setting `plugins.info_refresh_interval` to `0` will disable caching.

Closes #2668.
2013-04-05 11:36:56 +02:00
Martijn van Groningen
591a76bd88 Changed es version from string to class Version. 2012-12-06 15:37:03 +01:00
Martijn van Groningen
22f99e848f Expose es version in node info api.
Closes #2466
2012-12-06 15:22:44 +01:00
Shay Banon
bb0f5cf234 improve map builder to initialize the inner map with a map to build the data from 2012-05-20 19:50:47 +02:00
Shay Banon
1f050435b2 Node Stats: Add timestamp per node stats element, closes #1851. 2012-04-11 12:20:21 +03:00
Shay Banon
0a3c941947 Node Stats: Add fs level stats (size + iostats), closes #1622. 2012-01-18 21:00:09 +02:00
Shay Banon
9d979dfc01 Add thread_pool to nodes info and nodes stats APIs, closes #1601. 2012-01-10 17:45:10 +02:00
Shay Banon
4464fe1dc1 Node Stats API: Add specific flags for stats, simplified REST paths, closes #1597. 2012-01-09 18:01:41 +02:00
Shay Banon
f1f2fb2ba7 Nodes Info API: Allow to specify which info to get back, simpler URI paths, closes #1596. 2012-01-09 15:24:17 +02:00
Nicolas Lalevée
4693b1e875 Add the hostname to the node info 2011-12-13 19:10:31 +02:00
Shay Banon
ce999489d5 set the node service on the discovery to get the additional service level attributes (issue #1532) 2011-12-12 20:22:19 +02:00
Shay Banon
de861d6f43 Support Multicast discovery for external clients, closes #1532. 2011-12-11 18:54:07 +02:00
Shay Banon
6a71eab51f finalize structure, tests pass 2011-12-06 02:43:17 +02:00
Shay Banon
a8fd2d48b8 first cleanup phase, move to single src 2011-12-06 00:59:23 +02:00