mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(loki): compactor.retention_enabled
This commit is contained in:
parent
d8ca3a9bd4
commit
1c93bd9bf8
1 changed files with 7 additions and 0 deletions
|
|
@ -25,6 +25,12 @@ in {
|
|||
http_listen_port = mkOptionDefault 9093;
|
||||
grpc_listen_port = mkOptionDefault 0;
|
||||
};
|
||||
compactor = {
|
||||
working_directory = mkOptionDefault "${cfg.dataDir}/retention";
|
||||
retention_enabled = mkOptionDefault true;
|
||||
retention_delete_delay = mkOptionDefault "12h";
|
||||
delete_request_store = mkOptionDefault "filesystem";
|
||||
};
|
||||
limits_config = mapOptionDefaults {
|
||||
ingestion_rate_mb = 256;
|
||||
ingestion_burst_size_mb = 512;
|
||||
|
|
@ -37,6 +43,7 @@ in {
|
|||
per_stream_rate_limit_burst = "256MB";
|
||||
reject_old_samples = true;
|
||||
reject_old_samples_max_age = "${toString (24 * 9)}h";
|
||||
retention_period = "360h";
|
||||
};
|
||||
# https://grafana.com/docs/loki/latest/configure/examples/configuration-examples/#1-local-configuration-exampleyaml
|
||||
auth_enabled = mkOptionDefault false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue