Skip to content

Commit

Permalink
Override unit if we have a _systemd_user_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
karandit committed Jul 28, 2023
1 parent 6ed34d6 commit a7049f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/wireguard-monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ in {
target_label = "unit";
}
{
source_labels = [ "__journal__systemd_user_unit" ];
target_label = "user_unit";
source_labels = [ "__journal__systemd_unit" "__journal__systemd_user_unit" ];
target_label = "unit";
regex = "(.*);(.+)";
replacement = "$2";
}
];
}];
Expand Down

0 comments on commit a7049f7

Please sign in to comment.