diff --git a/templates/prometheus.yaml.erb b/templates/prometheus.yaml.erb index a350d5329..62254834d 100644 --- a/templates/prometheus.yaml.erb +++ b/templates/prometheus.yaml.erb @@ -11,4 +11,4 @@ 'alertmanagers'=>scope.lookupvar('::prometheus::alertmanagers_config'), } } -%> -<%= full_config.to_yaml.gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } -%> +<%= full_config.to_yaml(options = {:line_width => -1}).gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') } -%>