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
|
|
|
|
-%>
|