X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeac903989ab0d5d7db7b5a21167eaa60801a536..d18cd92a98384aebf371376383a4408485f12374:/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