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 = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
devices = lib.mkForce [ "/dev/vda" ];
|
devices = lib.mkForce [ "/dev/vda" ];
|
||||||
|
configurationLimit = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
|
@ -182,7 +183,12 @@
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-old";
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.journald.extraConfig = ''
|
services.journald.extraConfig = ''
|
||||||
|
|
|
||||||
|
|
@ -751,12 +751,16 @@ in
|
||||||
common = {
|
common = {
|
||||||
path_prefix = "/var/lib/loki";
|
path_prefix = "/var/lib/loki";
|
||||||
replication_factor = 1;
|
replication_factor = 1;
|
||||||
ring.kvstore.store = "inmemory";
|
ring = {
|
||||||
|
instance_addr = "127.0.0.1";
|
||||||
|
kvstore.store = "inmemory";
|
||||||
|
};
|
||||||
storage.filesystem = {
|
storage.filesystem = {
|
||||||
chunks_directory = "/var/lib/loki/chunks";
|
chunks_directory = "/var/lib/loki/chunks";
|
||||||
rules_directory = "/var/lib/loki/rules";
|
rules_directory = "/var/lib/loki/rules";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
frontend.address = "127.0.0.1";
|
||||||
schema_config.configs = [
|
schema_config.configs = [
|
||||||
{
|
{
|
||||||
from = "2024-01-01";
|
from = "2024-01-01";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue