Skip to content

Commit

Permalink
Extend promtail with user_id, user_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
karandit committed Jul 28, 2023
1 parent 88e8a02 commit 6ed34d6
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions modules/wireguard-monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
];
}];
};
};
Expand Down

0 comments on commit 6ed34d6

Please sign in to comment.