fix: some logging bits with daemons
This commit is contained in:
parent
fc2e493f0a
commit
b376133477
@ -49,8 +49,8 @@
|
|||||||
title = "Metrics";
|
title = "Metrics";
|
||||||
span = {
|
span = {
|
||||||
end = "now";
|
end = "now";
|
||||||
duration = "1d";
|
duration = "1h";
|
||||||
step_duration = "5min";
|
step_duration = "1min";
|
||||||
};
|
};
|
||||||
graphs = [
|
graphs = [
|
||||||
{
|
{
|
||||||
@ -192,11 +192,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
vector = {
|
vector = {
|
||||||
type = "file";
|
type = "internal_logs";
|
||||||
include = [
|
|
||||||
config.services.vector.stdoutPath
|
|
||||||
config.services.vector.stderrPath
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
victoria-logs = {
|
victoria-logs = {
|
||||||
type = "file";
|
type = "file";
|
||||||
@ -228,7 +224,7 @@
|
|||||||
type = "elasticsearch";
|
type = "elasticsearch";
|
||||||
mode = "bulk";
|
mode = "bulk";
|
||||||
endpoints = [
|
endpoints = [
|
||||||
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearchk"
|
"http://${config.services.victoria-logs.listenAddr}/insert/elasticsearch"
|
||||||
];
|
];
|
||||||
inputs = [
|
inputs = [
|
||||||
"prometheus"
|
"prometheus"
|
||||||
|
@ -195,7 +195,8 @@ with lib;
|
|||||||
"${pkgs.durnitisp}/bin/durnitisp"
|
"${pkgs.durnitisp}/bin/durnitisp"
|
||||||
"--listenHost=${config.services.durnitisp.listen}"
|
"--listenHost=${config.services.durnitisp.listen}"
|
||||||
];
|
];
|
||||||
|
#StandardErrorPath = "/var/log/clio.durnitisp.err";
|
||||||
|
#StandardOutPath = "/var/log/clio.durnitisp.out";
|
||||||
KeepAlive = true;
|
KeepAlive = true;
|
||||||
RunAtLoad = true;
|
RunAtLoad = true;
|
||||||
};
|
};
|
||||||
|
@ -28,14 +28,8 @@ with lib;
|
|||||||
|
|
||||||
launchd.daemons.vector = mkIf config.services.vector.enable {
|
launchd.daemons.vector = mkIf config.services.vector.enable {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Program = "${pkgs.vector}/bin/vector";
|
||||||
ProgramArguments = [
|
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"
|
"--verbose"
|
||||||
"--watch-config"
|
"--watch-config"
|
||||||
"--config=/etc/${config.environment.etc."vector.yaml".target}"
|
"--config=/etc/${config.environment.etc."vector.yaml".target}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user