From 8545807dd84b2cf2602a0be076c4ddd640848980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 23 Jan 2025 19:50:25 +0100 Subject: [PATCH] Add job label to promtail journald logs --- system/monitoring/logs.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/monitoring/logs.nix b/system/monitoring/logs.nix index e003f97..8b9e3bb 100644 --- a/system/monitoring/logs.nix +++ b/system/monitoring/logs.nix @@ -21,6 +21,9 @@ job_name = "journal"; journal = { json = true; + labels = { + job = "systemd-journal"; + }; }; relabel_configs = [ {