Skip to content

Commit b8f0829

Browse files
authored
Fix promtail config when no timeout is configured. (#520)
1 parent ea23882 commit b8f0829

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

partition/roles/promtail/templates/promtail.yaml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ positions:
88
clients:
99
{% for client in promtail_clients %}
1010
- url: {{ client.url }}
11+
{% if client.timeout is defined %}
1112
timeout: {{ client.timeout }}
13+
{% endif %}
1214
{% if client.basic_auth is defined %}
1315
basic_auth:
1416
username: {{ client.basic_auth.username }}
@@ -17,4 +19,4 @@ clients:
1719
{% endfor %}
1820

1921
scrape_configs:
20-
{{ promtail_scrape_configs | to_yaml(indent=2) }}
22+
{{ promtail_scrape_configs | to_yaml(indent=2) }}

0 commit comments

Comments
 (0)