add variable
This commit is contained in:
parent
6be0a8d26f
commit
1a29a01005
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
-%>
|
-%>
|
||||||
|
|
Loading…
Reference in a new issue