fix: some logging bits with daemons
This commit is contained in:
parent
fc2e493f0a
commit
b376133477
@ -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"
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user