diff --git a/templates/prometheus.yaml.erb b/templates/prometheus.yaml.erb index ddf0cec3d..98690d89e 100644 --- a/templates/prometheus.yaml.erb +++ b/templates/prometheus.yaml.erb @@ -21,9 +21,4 @@ if @prometheus_v2 full_config['remote_write'] = remote_write_configs end -%> -<%= if @prometheus_v2 -full_config.to_yaml().gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } -else -full_config.to_yaml(options = {:line_width => -1}).gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } -end - -%> +<%= full_config.to_yaml(options = {:line_width => -1}).gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } -%>