diff --git a/templates/prometheus.yml.erb b/templates/prometheus.yml.erb index 2fec727..be3e5a8 100644 --- a/templates/prometheus.yml.erb +++ b/templates/prometheus.yml.erb @@ -1,5 +1,6 @@ <% require 'yaml' -%> -<%= if @configuration +<% configuration = scope.lookupvar('::prometheus::configuration') -%> +<%= if configuration configuration.to_yaml().gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } end -%>