diff --git a/modules/wireguard-monitoring/default.nix b/modules/wireguard-monitoring/default.nix index c8b0c39..94154ac 100644 --- a/modules/wireguard-monitoring/default.nix +++ b/modules/wireguard-monitoring/default.nix @@ -58,10 +58,20 @@ in { host = config.networking.hostName; }; }; - relabel_configs = [{ - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - }]; + relabel_configs = [ + { + source_labels = [ "__journal__uid" ]; + target_label = "user_id"; + } + { + source_labels = [ "__journal__systemd_unit" ]; + target_label = "unit"; + } + { + source_labels = [ "__journal__systemd_user_unit" ]; + target_label = "user_unit"; + } + ]; }]; }; };