X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeac903989ab0d5d7db7b5a21167eaa60801a536..4a2368cef9137b7d9911183e05c78c21ed2483e6:/cookbooks/elasticsearch/recipes/default.rb?ds=sidebyside 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