Skip to content

Commit

Permalink
fix: disable long lines splitting in promtail_config_scrape_configs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
niasar authored Nov 5, 2023
1 parent d146e8d commit d534aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ scrape_configs:
{{ promtail_config_default_file_sd_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if promtail_config_scrape_configs|length %}
{{ promtail_config_scrape_configs | to_nice_yaml(indent=2) | indent(2, False) }}
{{ promtail_config_scrape_configs | to_nice_yaml(indent=2, width=2147483647) | indent(2, False) }}
{% endif %}

{% if promtail_target_config != {} %}
Expand Down

0 comments on commit d534aaa

Please sign in to comment.