Skip to content

Commit

Permalink
loki: configure tsdb index from 2024-07-01
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Jun 30, 2024
1 parent 725e184 commit bb0b117
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/loki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
# https://grafana.com/docs/loki/latest/configuration/examples/#complete-local-config
configuration = {
auth_enabled = false;
common.path_prefix = "/var/lib/loki";

server.http_listen_port = httpPort;
server.log_level = "warn";
Expand Down Expand Up @@ -34,12 +35,24 @@ let
period = "168h";
};
}
{
from = "2024-07-01";
store = "tsdb";
object_store = "filesystem";
schema = "v13";
index = {
prefix = "index_";
period = "24h";
};
}
];
};

storage_config = {
boltdb.directory = "/tmp/loki/index";
filesystem.directory = "/tmp/loki/chunks";
tsdb_shipper.active_index_directory = "/var/lib/loki/tsdb-index";
tsdb_shipper.cache_location = "/var/lib/loki/tsdb-cache";
};

limits_config = {
Expand Down

0 comments on commit bb0b117

Please sign in to comment.