Skip to content

Commit ea23882

Browse files
authored
Monitoring promtail client configuration (#518)
1 parent 8200ed8 commit ea23882

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ positions:
66
filename: /var/log/promtail-positions.yaml
77

88
clients:
9-
{{ promtail_clients | to_yaml(indent=2) }}
9+
{% for client in promtail_clients %}
10+
- url: {{ client.url }}
11+
timeout: {{ client.timeout }}
12+
{% if client.basic_auth is defined %}
13+
basic_auth:
14+
username: {{ client.basic_auth.username }}
15+
password: {{ client.basic_auth.password }}
16+
{% endif %}
17+
{% endfor %}
1018

1119
scrape_configs:
1220
{{ promtail_scrape_configs | to_yaml(indent=2) }}

0 commit comments

Comments
 (0)