fix: Figured out what the issue with prometheus logs files was.
This commit is contained in:
parent
e2a85065c3
commit
ce874104f2
@ -160,8 +160,8 @@ with lib;
|
|||||||
"--config.file=/etc/${config.environment.etc."prometheus.yaml".target}"
|
"--config.file=/etc/${config.environment.etc."prometheus.yaml".target}"
|
||||||
"--storage.tsdb.path=${config.services.prometheus.dataPath}/data"
|
"--storage.tsdb.path=${config.services.prometheus.dataPath}/data"
|
||||||
];
|
];
|
||||||
#StandardOutPath = "${config.services.prometheus.dataPath}/prometheus.out.log";
|
StandardOutPath = "${config.services.prometheus.dataPath}/prometheus.out.log";
|
||||||
#StandardErrorPath = "${config.services.prometheus.dataPath}/prometheus.err.log";
|
StandardErrorPath = "${config.services.prometheus.dataPath}/prometheus.err.log";
|
||||||
WorkingDirectory = config.services.prometheus.dataPath;
|
WorkingDirectory = config.services.prometheus.dataPath;
|
||||||
WatchPaths = [
|
WatchPaths = [
|
||||||
"/etc/${config.environment.etc."prometheus.yaml".target}"
|
"/etc/${config.environment.etc."prometheus.yaml".target}"
|
||||||
@ -171,25 +171,25 @@ with lib;
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#environment.etc."newsyslog.d/org.nixos.prometheus.conf" = mkIf config.services.prometheus.enable {
|
environment.etc."newsyslog.d/org.nixos.prometheus.conf" = mkIf config.services.prometheus.enable {
|
||||||
# text = ''
|
text = ''
|
||||||
# # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
||||||
# ${config.launchd.user.agents.prometheus.serviceConfig.StandardOutPath} 644 10 1000 * BNJ
|
${config.launchd.user.agents.prometheus.serviceConfig.StandardOutPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
# ${config.launchd.user.agents.prometheus.serviceConfig.StandardErrorPath} 644 10 1000 * BNJ
|
${config.launchd.user.agents.prometheus.serviceConfig.StandardErrorPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
# '';
|
'';
|
||||||
#};
|
};
|
||||||
environment.etc."newsyslog.d/org.nixos.heracles.conf" = mkIf config.services.prometheus.enable {
|
environment.etc."newsyslog.d/org.nixos.heracles.conf" = mkIf config.services.prometheus.enable {
|
||||||
text = ''
|
text = ''
|
||||||
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
||||||
${config.launchd.user.agents.heracles.serviceConfig.StandardOutPath} 644 10 1000 * BNJ
|
${config.launchd.user.agents.heracles.serviceConfig.StandardOutPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
${config.launchd.user.agents.heracles.serviceConfig.StandardErrorPath} 644 10 1000 * BNJ
|
${config.launchd.user.agents.heracles.serviceConfig.StandardErrorPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
environment.etc."newsyslog.d/org.nixos.durnitisp.conf" = mkIf config.services.durnitisp.enable {
|
environment.etc."newsyslog.d/org.nixos.durnitisp.conf" = mkIf config.services.durnitisp.enable {
|
||||||
text = ''
|
text = ''
|
||||||
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
|
||||||
${config.launchd.daemons.durnitisp.serviceConfig.StandardOutPath} 644 10 1000 * BNJ
|
${config.launchd.daemons.durnitisp.serviceConfig.StandardOutPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
${config.launchd.daemons.durnitisp.serviceConfig.StandardErrorPath} 644 10 1000 * BNJ
|
${config.launchd.daemons.durnitisp.serviceConfig.StandardErrorPath} zaphar:staff 644 10 1000 * BNJ
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user