tenseleyflow/shithub / f223a1d

Browse files

monitoring-client: drop promtail template (Loki shipping deferred)

Authored by espadonne
SHA
f223a1dd3422122704a70734738d60fedb9e9118
Parents
4463c19
Tree
40c2cc5

1 changed file

StatusFile+-
D deploy/ansible/roles/monitoring-client/templates/promtail-config.yml.j2 0 34
deploy/ansible/roles/monitoring-client/templates/promtail-config.yml.j2deleted
@@ -1,34 +0,0 @@
1
-# Managed by Ansible. Ships caddy + journald (shithubd) logs to Loki
2
-# on the bare-metal monitoring host over WireGuard.
3
-
4
-server:
5
-  http_listen_port: 9080
6
-  grpc_listen_port: 0
7
-
8
-positions:
9
-  filename: /var/lib/promtail/positions.yaml
10
-
11
-clients:
12
-  - url: http://10.7.0.1:3100/loki/api/v1/push   # WG IP of metal box
13
-
14
-scrape_configs:
15
-  - job_name: caddy
16
-    static_configs:
17
-      - targets: [localhost]
18
-        labels:
19
-          job: caddy
20
-          host: {{ ansible_hostname }}
21
-          __path__: /var/log/caddy/*.log
22
-
23
-  - job_name: shithubd
24
-    journal:
25
-      max_age: 12h
26
-      labels:
27
-        job: shithubd
28
-        host: {{ ansible_hostname }}
29
-    relabel_configs:
30
-      - source_labels: ['__journal__systemd_unit']
31
-        regex: 'shithubd-.+\.service'
32
-        action: keep
33
-      - source_labels: ['__journal__systemd_unit']
34
-        target_label: 'unit'