Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch module is not working with upgraded elasticsearch. #158

Closed
appasahebs opened this issue Aug 26, 2014 · 5 comments
Closed

Elasticsearch module is not working with upgraded elasticsearch. #158

appasahebs opened this issue Aug 26, 2014 · 5 comments

Comments

@appasahebs
Copy link

I have upgraded elasticseach and ganglia module as well. But couldn't able to register stats there. What could be the reason?

following is the output i am getting...

value for es_index___docs_count is 37694540
value for es_index___size is 282020013146
value for es_heap_committed is None
value for es_heap_used is None
value for es_non_heap_committed is None
value for es_non_heap_used is None
value for es_threads is None
value for es_threads_peak is None
value for es_gc_time is None
value for es_transport_open is None
value for es_transport_rx_count is None
value for es_transport_rx_size is None
value for es_transport_tx_count is None
value for es_transport_tx_size is None
value for es_http_current_open is None
value for es_http_total_open is None
value for es_indices_size is None
value for es_gc_count is None
value for es_merges_current is None
value for es_merges_current_docs is None
value for es_merges_total is None
value for es_merges_total_docs is None
value for es_merges_current_size is None
value for es_merges_total_size is None
value for es_merges_time is None
value for es_refresh_total is None
value for es_refresh_time is None
value for es_docs_count is None
value for es_docs_deleted is None
value for es_open_file_descriptors is None
value for es_cache_field_eviction is None
value for es_cache_field_size is None
value for es_cache_filter_count is None
value for es_cache_filter_evictions is None
value for es_cache_filter_size is None
value for es_query_current is None
value for es_query_time is None
value for es_fetch_current is None
value for es_fetch_total is None
value for es_fetch_time is None
value for es_flush_total is None
value for es_flush_time is None
value for es_get_exists_time is None
value for es_get_exists_total is None
value for es_get_time is None
value for es_get_total is None
value for es_get_missing_time is None
value for es_get_missing_total is None
value for es_indexing_delete_time is None
value for es_indexing_delete_total is None
value for es_indexing_index_time is None
value for es_indexing_index_total is None
value for es_query_total is None

@vvuksan
Copy link
Member

vvuksan commented Aug 26, 2014

I suspect output format has changed for the Elastic Search stats. You may need to take a look at

https://github.com/ganglia/gmond_python_modules/blob/master/elasticsearch/python_modules/elasticsearch.py#L189

and dump the stats URLs to see what the difference is.

@appasahebs
Copy link
Author

Stats URLs are working when I am trying those on browsers. But no luck in python script. I am using elasticsearch 1.3.0

@RoopendraV
Copy link

I am too facing similar problem. Can you please let us know what changes are requires to make it work in elasticsearch 1.3.0 ? Thanks

@alpha01
Copy link

alpha01 commented Sep 8, 2014

Using node specific call, rather then the old cluster state status. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster.html

diff updated_elasticsearch.py elasticsearch.py 
198c198
<         url_cluster = '{0}_nodes/_local/stats?all=true'.format(host)
---
>         url_cluster = '{0}_cluster/state/nodes'.format(host)

@appasahebs
Copy link
Author

Thanks for the help. Its working fine after changing above api path url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants