From 95b73daa36b23565a8566f71f9b202d3459b685f Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 25 Jun 2023 09:52:36 -0400 Subject: Initial Commit --- data/promtail/config.yml | 30 ++++++++++++++++++++++++++++++ data/promtail/config_standard.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 data/promtail/config.yml create mode 100644 data/promtail/config_standard.yml (limited to 'data/promtail') 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 @@ +server: + http_listen_port: 9080 + grpc_listen_port: 0 + +positions: + filename: /tmp/positions.yaml + +clients: + - url: http://logs.chudnick.com:3100/loki/api/v1/push + +scrape_configs: +- job_name: system + static_configs: + - targets: + - localhost + labels: + job: varlogs + __path__: /var/log/*log + __path_exclude__: /var/log/lastlog + +- job_name: journal + journal: + max_age: 12h + labels: + job: systemd-journal + relabel_configs: + - source_labels: ['__journal__systemd_unit'] + target_label: 'unit' + - source_labels: ['__journal__hostname'] + 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 @@ +server: + http_listen_port: 9080 + grpc_listen_port: 0 + +positions: + filename: /tmp/positions.yaml + +clients: + - url: http://logs.chudnick.com:3100/loki/api/v1/push + +scrape_configs: +- job_name: system + static_configs: + - targets: + - localhost + labels: + job: varlogs + __path__: /var/log/*log + __path_exclude__: /var/log/lastlog + +- job_name: journal + journal: + max_age: 12h + labels: + job: systemd-journal + relabel_configs: + - source_labels: ['__journal__systemd_unit'] + target_label: 'unit' -- cgit v1.2.3