Skip to content

Commit

Permalink
Merge pull request #104 from benpollardcts/master
Browse files Browse the repository at this point in the history
Disable line wrapping when converting full_config to yaml.
  • Loading branch information
tuxmea authored Nov 10, 2017
2 parents 3e3a80f + 681bc1b commit 8ca23e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/prometheus.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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('"', '') } -%>

0 comments on commit 8ca23e7

Please sign in to comment.