diff --git a/nixos/machines/pepe/loki-promtail.nix b/nixos/machines/pepe/loki-promtail.nix index 56bb507..1c64287 100644 --- a/nixos/machines/pepe/loki-promtail.nix +++ b/nixos/machines/pepe/loki-promtail.nix @@ -22,10 +22,16 @@ host = config.networking.hostName; }; }; - relabel_configs = [{ - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - }]; + relabel_configs = [ + { + source_labels = [ "__journal__systemd_unit" ]; + target_label = "unit"; + } + { + source_labels = [ "__journal__transport" ]; + target_label = "transport"; + } + ]; } ]; diff --git a/nixos/machines/robi/loki-promtail.nix b/nixos/machines/robi/loki-promtail.nix index 56bb507..1c64287 100644 --- a/nixos/machines/robi/loki-promtail.nix +++ b/nixos/machines/robi/loki-promtail.nix @@ -22,10 +22,16 @@ host = config.networking.hostName; }; }; - relabel_configs = [{ - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - }]; + relabel_configs = [ + { + source_labels = [ "__journal__systemd_unit" ]; + target_label = "unit"; + } + { + source_labels = [ "__journal__transport" ]; + target_label = "transport"; + } + ]; } ];