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