add variable

This commit is contained in:
Antonio J. Delgado 2023-02-12 11:13:27 +02:00
parent 6be0a8d26f
commit 1a29a01005

View file

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