Promtail is EOL
Recomended migtration to grafana-alloy (https://grafana.com/docs/alloy/latest/set-up/migrate/from-promtail/) or fluent-bit (https://docs.fluentbit.io/manual/data-pipeline/outputs/loki) I chose alloy because of the compatability. This needs to be reworked to a native implementation later
This commit is contained in:
@@ -41,17 +41,22 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.promtail = {
|
services.alloy = {
|
||||||
enable = cfg.enablePromtail;
|
enable = cfg.enablePromtail;
|
||||||
configFile = import ./promtail_config.nix {
|
extraFlags = ["--config.format=promtail"]; #TODO please change this to native alloy config later
|
||||||
|
configPath = import ./promtail_config.nix {
|
||||||
lokiAddress = cfg.lokiHost;
|
lokiAddress = cfg.lokiHost;
|
||||||
logNginx = cfg.logNginx;
|
logNginx = cfg.logNginx;
|
||||||
config = config;
|
config = config;
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
users.groups.promtail = {};
|
||||||
users.users.promtail.extraGroups = [ "systemd-journal" ] ++ (lib.optionals cfg.logNginx [ "nginx" ]) ;
|
users.users.promtail = {
|
||||||
|
isNormalUser = true;
|
||||||
|
group = "promtail";
|
||||||
|
extraGroups = [ "systemd-journal" ] ++ (lib.optionals cfg.logNginx [ "nginx" ]) ;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user