improve loki logging

This commit is contained in:
Ingolf Wagner 2023-02-08 13:08:21 +01:00
parent 2fc339cdd3
commit fd670627e6
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 20 additions and 8 deletions

View file

@ -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";
}
];
}
];

View file

@ -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";
}
];
}
];