chore(monitoring): more journald labels

This commit is contained in:
arcnmx 2024-06-24 15:39:12 -07:00
parent 7bcc75c059
commit 9d048f0897

View file

@ -32,7 +32,7 @@ in {
{ {
job_name = "${systemConfig.name}-journald"; job_name = "${systemConfig.name}-journald";
journal = { journal = {
json = true; #json = true;
max_age = "${toString (24 * 7)}h"; max_age = "${toString (24 * 7)}h";
labels = mkMerge [ labels = mkMerge [
{ {
@ -50,6 +50,14 @@ in {
source_labels = ["__journal_syslog_identifier"]; source_labels = ["__journal_syslog_identifier"];
target_label = "syslog_identifier"; target_label = "syslog_identifier";
} }
{
source_labels = ["__journal_priority_keyword"];
target_label = "priority_keyword";
}
{
source_labels = ["__journal_priority"];
target_label = "priority";
}
]; ];
} }
(mkIf nginx.enable { (mkIf nginx.enable {