puppet-prometheus/templates/prometheus.yml.erb

7 lines
199 B
Text
Raw Normal View History

2023-02-12 10:03:04 +01:00
<% require 'yaml' -%>
2023-02-12 10:13:27 +01:00
<% configuration = scope.lookupvar('::prometheus::configuration') -%>
<%= if configuration
2023-02-12 10:03:04 +01:00
configuration.to_yaml().gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') }
end
-%>