]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/attributes/default.rb
Report details of configured chef roles to prometheus
[chef.git] / cookbooks / prometheus / attributes / default.rb
index bea00dfc6ce9378638fd879d9ab3936812c30e38..56781b4dcb9c72a8657ac253f569cadf3d96a8bf 100644 (file)
@@ -1 +1,5 @@
 default[:prometheus][:exporters] = {}
+
+if node[:recipes].include?("prometheus::server")
+  default[:apt][:sources] |= ["grafana"]
+end