From 681bc1b4d86b8c6a64c976d538b629296e683eb7 Mon Sep 17 00:00:00 2001 From: Ben Pollard Date: Wed, 8 Nov 2017 15:18:43 +0000 Subject: [PATCH] Disable line wrapping when converting full_config to yaml. Default is 80 chars. --- templates/prometheus.yaml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('"', '') } -%>