tweaks: vector logging

This commit is contained in:
Jeremy Wall 2024-06-20 23:24:21 -04:00
parent 5f1ae8a24f
commit a177443337
2 changed files with 8 additions and 1 deletions

View File

@ -190,6 +190,7 @@
data_dir = "/var/lib/vector";
api = {
enabled = true;
address = "127.0.0.1:8686";
};
sources = {
prometheus = {

View File

@ -28,8 +28,14 @@ with lib;
launchd.daemons.vector = mkIf config.services.vector.enable {
serviceConfig = {
Program = "${pkgs.vector}/bin/vector";
ProgramArguments = [
"${pkgs.clio}/bin/clio"
"--out-path=${config.services.vector.stdoutPath}"
"--err-path=${config.services.vector.stdoutPath}"
"--pid-file=${config.services.vector.pidPath}"
"--paranoid"
"--"
"${pkgs.vector}/bin/vector"
"--verbose"
"--watch-config"
"--config=/etc/${config.environment.etc."vector.yaml".target}"