puppet-prometheus/templates/prometheus.yml.erb
2023-02-12 11:13:27 +02:00

6 lines
199 B
Text

<% require 'yaml' -%>
<% configuration = scope.lookupvar('::prometheus::configuration') -%>
<%= if configuration
configuration.to_yaml().gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') }
end
-%>