X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..6270f0b685e414b82dd311ad99fe4df0c3e2bfd6:/cookbooks/memcached/recipes/default.rb?ds=inline diff --git a/cookbooks/memcached/recipes/default.rb b/cookbooks/memcached/recipes/default.rb index 937e8b93c..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" @@ -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