]> git.openstreetmap.org Git - chef.git/commitdiff
Configure modtile and renderd collectors
authorTom Hughes <tom@compton.nu>
Sat, 26 Sep 2020 10:47:21 +0000 (11:47 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 26 Sep 2020 10:47:21 +0000 (11:47 +0100)
cookbooks/tile/metadata.rb
cookbooks/tile/recipes/default.rb

index 0c44f9c6ca11f29025e74b959bcf6c5514d5efdc..bd84ccec03b2eec46ca135d89454c9b915497e6a 100644 (file)
@@ -12,6 +12,7 @@ depends           "git"
 depends           "munin"
 depends           "nodejs"
 depends           "postgresql"
 depends           "munin"
 depends           "nodejs"
 depends           "postgresql"
+depends           "prometheus"
 depends           "python"
 depends           "systemd"
 depends           "tools"
 depends           "python"
 depends           "systemd"
 depends           "tools"
index 57ee431b085ac6deb617204ded22c64b558b58e9..7363e410cd3fe945b20463defa6917330d17ab89 100644 (file)
@@ -23,6 +23,7 @@ include_recipe "git"
 include_recipe "munin"
 include_recipe "nodejs"
 include_recipe "postgresql"
 include_recipe "munin"
 include_recipe "nodejs"
 include_recipe "postgresql"
+include_recipe "prometheus"
 include_recipe "python"
 include_recipe "tools"
 
 include_recipe "python"
 include_recipe "tools"
 
@@ -601,3 +602,11 @@ munin_plugin "renderd_zoom"
 munin_plugin "renderd_zoom_time"
 
 munin_plugin "replication_delay"
 munin_plugin "renderd_zoom_time"
 
 munin_plugin "replication_delay"
+
+prometheus_collector "modtile" do
+  interval "1m"
+end
+
+prometheus_collector "renderd" do
+  interval "1m"
+end