Poke a hole through the proxy for cluster health

Interesting read-only data on the elasticsearch cluster can be found at
_cluster/health, this opens that url in the apache reverse proxy so that
we can see the health of the cluster.

Change-Id: I8d7a2eeec1f02aaa78af5f348b1ae91af76f522d
This commit is contained in:
K Jonathan Harker 2013-09-06 21:38:48 +00:00
parent f916ed3b99
commit 5c141b464a

View File

@ -10,7 +10,7 @@
<% if proxy_elasticsearch == true %>
# Proxy for elasticsearch _aliases, .*/_status, and .*/_search.
<LocationMatch "^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search)$">
<LocationMatch "^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search|_cluster/health)$">
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 connectiontimeout=5 timeout=120
</LocationMatch>
ProxyPassReverse /elasticsearch/ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/