X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeac903989ab0d5d7db7b5a21167eaa60801a536..b759f92eb9b944a8de2de022aa6f9d2a0e76cc21:/cookbooks/elasticsearch/recipes/default.rb diff --git a/cookbooks/elasticsearch/recipes/default.rb b/cookbooks/elasticsearch/recipes/default.rb index ce4083f79..a48ee9987 100644 --- a/cookbooks/elasticsearch/recipes/default.rb +++ b/cookbooks/elasticsearch/recipes/default.rb @@ -17,6 +17,8 @@ # limitations under the License. # +include_recipe "prometheus" + case node[:elasticsearch][:version] when "6.x" then include_recipe "apt::elasticsearch6" when "7.x" then include_recipe "apt::elasticsearch7" @@ -38,3 +40,7 @@ service "elasticsearch" do action [:enable, :start] supports :status => true, :restart => true end + +prometheus_exporter "elasticsearch" do + port 9114 +end