]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/prometheus.yml.erb
Adjust sandbox for otrs service
[chef.git] / cookbooks / prometheus / templates / default / prometheus.yml.erb
index d5a8debaf5f4eff2f2f1a56ea89c5d7ec2d0579a..9b24a4d459e5b1b69b51ea9cb0d16747749f9067 100644 (file)
@@ -57,6 +57,13 @@ scrape_configs:
         replacement: 127.0.0.1:9219
 <% @jobs.sort.each do |name, targets| -%>
   - job_name: <%= name %>
+<% if targets.first[:sni] -%>
+    tls_config:
+      server_name: <%= targets.first[:sni] %>
+    relabel_configs:
+      - target_label: __scheme__
+        replacement: https
+<% end -%>
     static_configs:
 <% targets.each do |target| -%>
       - targets: