X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ba65c5618d3113373c0f3306ce993917fc2af23a..18847100b0fab137b27cef0ee8795bd22fb386a4:/cookbooks/memcached/recipes/default.rb diff --git a/cookbooks/memcached/recipes/default.rb b/cookbooks/memcached/recipes/default.rb index 1df2a7eb7..56916ec9e 100644 --- a/cookbooks/memcached/recipes/default.rb +++ b/cookbooks/memcached/recipes/default.rb @@ -18,6 +18,7 @@ # include_recipe "munin" +include_recipe "prometheus" package "memcached" @@ -30,7 +31,7 @@ template "/etc/memcached.conf" do source "memcached.conf.erb" owner "root" group "root" - mode 0o644 + mode "644" notifies :restart, "service[memcached]" end @@ -43,3 +44,8 @@ end target "memcached_multi_" end end + +prometheus_exporter "memcached" do + port 9150 + options "--memcached.address=#{node[:memcached][:ip_address]}:#{node[:memcached][:tcp_port]} --memcached.pid-file=/run/memcached/memcached.pid" +end