diff options
Diffstat (limited to 'data/promtail')
-rw-r--r-- | data/promtail/config.yml | 30 | ||||
-rw-r--r-- | data/promtail/config_standard.yml | 28 |
2 files changed, 58 insertions, 0 deletions
diff --git a/data/promtail/config.yml b/data/promtail/config.yml new file mode 100644 index 0000000..8cef116 --- /dev/null +++ b/data/promtail/config.yml | |||
@@ -0,0 +1,30 @@ | |||
1 | server: | ||
2 | http_listen_port: 9080 | ||
3 | grpc_listen_port: 0 | ||
4 | |||
5 | positions: | ||
6 | filename: /tmp/positions.yaml | ||
7 | |||
8 | clients: | ||
9 | - url: http://logs.chudnick.com:3100/loki/api/v1/push | ||
10 | |||
11 | scrape_configs: | ||
12 | - job_name: system | ||
13 | static_configs: | ||
14 | - targets: | ||
15 | - localhost | ||
16 | labels: | ||
17 | job: varlogs | ||
18 | __path__: /var/log/*log | ||
19 | __path_exclude__: /var/log/lastlog | ||
20 | |||
21 | - job_name: journal | ||
22 | journal: | ||
23 | max_age: 12h | ||
24 | labels: | ||
25 | job: systemd-journal | ||
26 | relabel_configs: | ||
27 | - source_labels: ['__journal__systemd_unit'] | ||
28 | target_label: 'unit' | ||
29 | - source_labels: ['__journal__hostname'] | ||
30 | target_label: 'hostname' | ||
diff --git a/data/promtail/config_standard.yml b/data/promtail/config_standard.yml new file mode 100644 index 0000000..750b131 --- /dev/null +++ b/data/promtail/config_standard.yml | |||
@@ -0,0 +1,28 @@ | |||
1 | server: | ||
2 | http_listen_port: 9080 | ||
3 | grpc_listen_port: 0 | ||
4 | |||
5 | positions: | ||
6 | filename: /tmp/positions.yaml | ||
7 | |||
8 | clients: | ||
9 | - url: http://logs.chudnick.com:3100/loki/api/v1/push | ||
10 | |||
11 | scrape_configs: | ||
12 | - job_name: system | ||
13 | static_configs: | ||
14 | - targets: | ||
15 | - localhost | ||
16 | labels: | ||
17 | job: varlogs | ||
18 | __path__: /var/log/*log | ||
19 | __path_exclude__: /var/log/lastlog | ||
20 | |||
21 | - job_name: journal | ||
22 | journal: | ||
23 | max_age: 12h | ||
24 | labels: | ||
25 | job: systemd-journal | ||
26 | relabel_configs: | ||
27 | - source_labels: ['__journal__systemd_unit'] | ||
28 | target_label: 'unit' | ||