diff --git a/nixos/machines/chungus/configuration.nix b/nixos/machines/chungus/configuration.nix index 1e12b0a..2a5b246 100644 --- a/nixos/machines/chungus/configuration.nix +++ b/nixos/machines/chungus/configuration.nix @@ -35,7 +35,7 @@ ./telemetry/telegraf.nix #./telemetry/opentelemetry-hass.nix ./telemetry/prometheus.nix - #./telemetry/loki.nix # todo enable this one again + ./telemetry/loki.nix # todo enable this one again ./sync-rbackup.nix ./sync-syncoid.nix diff --git a/nixos/machines/chungus/telemetry/loki.nix b/nixos/machines/chungus/telemetry/loki.nix index d161207..3552e0c 100644 --- a/nixos/machines/chungus/telemetry/loki.nix +++ b/nixos/machines/chungus/telemetry/loki.nix @@ -61,15 +61,14 @@ max_chunk_age = "1h"; chunk_target_size = 999999; chunk_retain_period = "30s"; - #max_transfer_retries = 0; }; schema_config = { configs = [{ - from = "2022-06-06"; - store = "boltdb-shipper"; + from = "2024-05-28"; + store = "tsdb"; object_store = "filesystem"; - schema = "v11"; + schema = "v13"; index = { prefix = "index_"; period = "24h"; @@ -78,11 +77,10 @@ }; storage_config = { - boltdb_shipper = { - active_index_directory = "/var/lib/loki/boltdb-shipper-active"; - cache_location = "/var/lib/loki/boltdb-shipper-cache"; + tsdb_shipper = { + active_index_directory = "/var/lib/loki/tsdb-shipper-active"; + cache_location = "/var/lib/loki/tsdb-shipper-cache"; cache_ttl = "24h"; - #shared_store = "filesystem"; }; filesystem = { @@ -95,10 +93,6 @@ reject_old_samples_max_age = "168h"; }; - #chunk_store_config = { - # max_look_back_period = "0s"; - #}; - table_manager = { retention_deletes_enabled = false; retention_period = "0s"; @@ -106,7 +100,6 @@ compactor = { working_directory = "/var/lib/loki"; - #shared_store = "filesystem"; compactor_ring = { kvstore = { store = "inmemory";