fix: keep Loki local and prune DO storage
This commit is contained in:
parent
23e087ae4b
commit
6ac29c1d1a
2 changed files with 12 additions and 2 deletions
|
|
@ -67,6 +67,7 @@
|
|||
boot.loader.grub = {
|
||||
enable = true;
|
||||
devices = lib.mkForce [ "/dev/vda" ];
|
||||
configurationLimit = 1;
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
|
|
@ -182,7 +183,12 @@
|
|||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 7d";
|
||||
options = "--delete-old";
|
||||
};
|
||||
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
};
|
||||
|
||||
services.journald.extraConfig = ''
|
||||
|
|
|
|||
|
|
@ -751,12 +751,16 @@ in
|
|||
common = {
|
||||
path_prefix = "/var/lib/loki";
|
||||
replication_factor = 1;
|
||||
ring.kvstore.store = "inmemory";
|
||||
ring = {
|
||||
instance_addr = "127.0.0.1";
|
||||
kvstore.store = "inmemory";
|
||||
};
|
||||
storage.filesystem = {
|
||||
chunks_directory = "/var/lib/loki/chunks";
|
||||
rules_directory = "/var/lib/loki/rules";
|
||||
};
|
||||
};
|
||||
frontend.address = "127.0.0.1";
|
||||
schema_config.configs = [
|
||||
{
|
||||
from = "2024-01-01";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue