media1: ship kodi logs to loki
Kodi logs to ~/.kodi/temp/kodi.log which isn't picked up by the journal or varlog scrape configs. Add a dedicated promtail scrape config for it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
@@ -117,4 +118,23 @@ in
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
};
|
||||
|
||||
# Ship Kodi logs to Loki
|
||||
services.promtail.configuration.scrape_configs = [
|
||||
{
|
||||
job_name = "kodi";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "localhost" ];
|
||||
labels = {
|
||||
job = "kodi";
|
||||
hostname = config.networking.hostName;
|
||||
tier = config.homelab.host.tier;
|
||||
role = config.homelab.host.role;
|
||||
__path__ = "/home/kodi/.kodi/temp/kodi.log";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user