eksoverzero / newrelic_elasticsearch_agent

Elasticsearch monitoring through New Relic
MIT License
21 stars 14 forks source link

Multiple data nodes per host #13

Closed mmcallister closed 10 years ago

mmcallister commented 10 years ago

Is there a way to get data on multiple nodes per host? Once the plugin is installed, there is just one newrelic_elasticsearch_agent running per server.

I am wondering how the data is aggregated on the New Relic Elasticsearch UI page. It does not seem to show all data for all nodes if we have multiple running.

Thank you!

eksoverzero commented 10 years ago

If you have, for example, index_1 and index_2, you have two options to monitor them:

Monitor the combined, index_1 AND index_2, stats:

# File: config/newrelic_plugin.yml

agents:
  elasticsearch_stats_agent:
    -
      name: "Index 1 & Index 2"
      url: "http://localhost:9200"
      index: "_all"

Not the "_all" value for the index option. This gets stats for ALL the indexes on the host. You can also monitor them separately:

# File: config/newrelic_plugin.yml

agents:
  elasticsearch_stats_agent:
    -
      name: "Index 1"
      url: "http://localhost:9200"
      index: "index_1"
    -
      name: "Index 2"
      url: "http://localhost:9200"
      index: "index_2"
mmcallister commented 10 years ago

Oh! Brilliant. What I had was 'index: _all' for all the hosts. Thanks for the super quick response!!

-Marie