]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/memcached/recipes/default.rb
Merge remote-tracking branch 'github/pull/426'
[chef.git] / cookbooks / memcached / recipes / default.rb
index 937e8b93c16e10c55add7aafdb9dbec143236a7c..56916ec9ea253723cb35a633908ba249367ee42f 100644 (file)
@@ -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