From 311d03d3c3c7913d5c5a7c92d1fe7595a76d70de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Mon, 7 Oct 2024 16:31:57 +0200 Subject: [PATCH] Add rsyslog / promtail log relay --- services/grafana/default.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/services/grafana/default.nix b/services/grafana/default.nix index 1e40549..e5225f4 100644 --- a/services/grafana/default.nix +++ b/services/grafana/default.nix @@ -184,26 +184,13 @@ in url = "http://127.0.0.1:3100/loki/api/v1/push"; }]; scrape_configs = [ - { - job_name = "journal"; - journal = { - max_age = "12h"; - labels = { - job = "systemd-journal"; - host = "localhost"; - }; - }; - relabel_configs = [{ - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - }]; - } { job_name = "syslog"; syslog = { listen_address = "0.0.0.0:1514"; labels = { job = "syslog"; + host = "localhost"; }; }; relabel_configs = [