I just installed Marvel for the first time on a production cluster running Kibana 4.4.2, ES 2.2.1. Followed the installation instructions, but when I try to load Marvel, I get:
Marvel: Error 400 Bad Request: Cannot read property 'cluster_name' of undefined
cluster.name is defined in elasticsearch.yml and shows (as cluster_name) with a curl localhost:9200.
So I'm not quite sure what's going on. The Marvel agent is definitely running, and I have the Marvel indices created (I already tried deleting them and recreating them):
I'm wondering if your .marvel-es-data index is not actually being populated. Can you verify that you master node(s) have all been restarted after installing Marvel? You can verify this by running:
curl localhost:9200/_cat/plugins?v
Any node not listing Marvel has not been restarted (or it wasn't installed).
$ curl localhost:9200/_cat/indices/.marvel*?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open .marvel-es-data 1 1 10 1470 28.6kb 14.3kb
green open .marvel-es-2016.03.21 1 1 1835434 3908 594.9mb 290.7mb
I assume that this will be kind of large or it will be empty. One or the other. Assuming it's large, can you copy/paste the output of it into a GitHub gist, then link to it. If it's empty, then just let me know that too.
Ha... Good catch! I do have a global template. This cluster stores timeseries, so the default template is optimized for space and performance (no source in particular).
Unfortunately, the index names don't have a clear pattern I can use, except that they don't start with .. Is there a simple pattern I can use to include all indices except the .xxx ones?
Unfortunately not. At least not yet! There's no "exclusionary" part of templates, so I created an issue for it. However, this is definitely the issue. Would it be possible to list that template manually for your indices? I realize that may be a nuisance, but it will allow Marvel indices (and Kibana ones for that matter) to work.
Hopefully we can add a way to hide indices from the templates to avoid this problem.
Alright, it took me a minute, but I finally got everything working : deleted my wildcard template and used specific templates instead. Marvel now works as expected.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.