fix: some logging bits with daemons

This commit is contained in:
Jeremy Wall 2024-06-11 16:56:55 -04:00
parent fc2e493f0a
commit b376133477
3 changed files with 7 additions and 16 deletions

View File

@ -49,8 +49,8 @@
title = "Metrics";
span = {
end = "now";
duration = "1d";
step_duration = "5min";
duration = "1h";
step_duration = "1min";
};
graphs = [
{
@ -192,11 +192,7 @@
];
};
vector = {
type = "file";
include = [
config.services.vector.stdoutPath
config.services.vector.stderrPath
];
type = "internal_logs";
};
victoria-logs = {
type = "file";
@ -228,7 +224,7 @@
type = "elasticsearch";
mode = "bulk";
endpoints = [
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearchk"
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearch"
];
inputs = [
"prometheus"

View File

@ -195,7 +195,8 @@ with lib;
"${pkgs.durnitisp}/bin/durnitisp"
"--listenHost=${config.services.durnitisp.listen}"
];
#StandardErrorPath = "/var/log/clio.durnitisp.err";
#StandardOutPath = "/var/log/clio.durnitisp.out";
KeepAlive = true;
RunAtLoad = true;
};

View File

@ -28,14 +28,8 @@ 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.stderrPath}"
"--pid-file=${config.services.vector.pidPath}"
"--paranoid"
"--"
"${pkgs.vector}/bin/vector"
"--verbose"
"--watch-config"
"--config=/etc/${config.environment.etc."vector.yaml".target}"