Fix caddy logging
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
services.promtail = {
|
||||
enable = true;
|
||||
@@ -36,6 +36,19 @@
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "varlog";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "localhost" ];
|
||||
labels = {
|
||||
job = "varlog";
|
||||
__path__ = "/var/log/**/*.log";
|
||||
hostname = "${config.networking.hostName}";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user