feat: More victoria logs configuration knobs
This commit is contained in:
parent
1d2e55bd75
commit
bd6bcddc3e
@ -8,6 +8,14 @@ with lib;
|
|||||||
description = "Logging directory path for victoria-logs service";
|
description = "Logging directory path for victoria-logs service";
|
||||||
default = "/Users/Zaphar/opt/victoria-logs";
|
default = "/Users/Zaphar/opt/victoria-logs";
|
||||||
};
|
};
|
||||||
|
maxStorageSize = mkOption {
|
||||||
|
description = "Maximum storage size on disk [KB, MB, GB]";
|
||||||
|
default = "200GiB";
|
||||||
|
};
|
||||||
|
retentionTime = mkOption {
|
||||||
|
description = "Timespan of logs to retain, Logs older than this will be dropped.";
|
||||||
|
default = "5d";
|
||||||
|
};
|
||||||
listenAddr = mkOption {
|
listenAddr = mkOption {
|
||||||
description = "Socket Address to listen on";
|
description = "Socket Address to listen on";
|
||||||
default = "127.0.0.1:9428";
|
default = "127.0.0.1:9428";
|
||||||
@ -41,6 +49,8 @@ with lib;
|
|||||||
"${pkgs.victoria-logs}/bin/victoria-logs"
|
"${pkgs.victoria-logs}/bin/victoria-logs"
|
||||||
"-logNewStreams"
|
"-logNewStreams"
|
||||||
"-storageDataPath=${config.services.victoria-logs.dataPath}/data"
|
"-storageDataPath=${config.services.victoria-logs.dataPath}/data"
|
||||||
|
"-retention.maxDiskSpaceUsageBytes=${config.services.victoria-logs.maxStorageSize}"
|
||||||
|
"-retentionPeriod=${config.services.victoria-logs.retentionTime}"
|
||||||
"-httpListenAddr=${config.services.victoria-logs.listenAddr}"
|
"-httpListenAddr=${config.services.victoria-logs.listenAddr}"
|
||||||
];
|
];
|
||||||
KeepAlive = true;
|
KeepAlive = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user