Skip to content

Commit 784a6b2

Browse files
committed
Configure rsyslog to push to promtail
1 parent 0b0ee14 commit 784a6b2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.* @127.0.0.1:1514

provision-contest/ansible/roles/prometheus_target_all/handlers/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
---
2+
- name: Restart rsyslog
3+
service:
4+
name: rsyslog
5+
enabled: true
6+
state: restarted
7+
28
- name: Restart promtail
39
service:
410
name: promtail

provision-contest/ansible/roles/prometheus_target_all/tasks/main.yml

+9
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@
9595
mode: 0644
9696
notify: Restart promtail
9797

98+
- name: Setup promtail push
99+
copy:
100+
src: 71-push.conf
101+
dest: /etc/rsyslog.d/
102+
mode: 0655
103+
owner: root
104+
group: root
105+
notify: Restart rsyslog
106+
98107
- name: Setup promtail systemd
99108
copy:
100109
src: promtail.service

0 commit comments

Comments
 (0)