fixed loki (boltdb -> tsdb)

This commit is contained in:
Ingolf Wagner 2024-05-29 23:36:43 +02:00
parent 2665f35441
commit 3714de0a16
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 7 additions and 14 deletions

View file

@ -35,7 +35,7 @@
./telemetry/telegraf.nix ./telemetry/telegraf.nix
#./telemetry/opentelemetry-hass.nix #./telemetry/opentelemetry-hass.nix
./telemetry/prometheus.nix ./telemetry/prometheus.nix
#./telemetry/loki.nix # todo enable this one again ./telemetry/loki.nix # todo enable this one again
./sync-rbackup.nix ./sync-rbackup.nix
./sync-syncoid.nix ./sync-syncoid.nix

View file

@ -61,15 +61,14 @@
max_chunk_age = "1h"; max_chunk_age = "1h";
chunk_target_size = 999999; chunk_target_size = 999999;
chunk_retain_period = "30s"; chunk_retain_period = "30s";
#max_transfer_retries = 0;
}; };
schema_config = { schema_config = {
configs = [{ configs = [{
from = "2022-06-06"; from = "2024-05-28";
store = "boltdb-shipper"; store = "tsdb";
object_store = "filesystem"; object_store = "filesystem";
schema = "v11"; schema = "v13";
index = { index = {
prefix = "index_"; prefix = "index_";
period = "24h"; period = "24h";
@ -78,11 +77,10 @@
}; };
storage_config = { storage_config = {
boltdb_shipper = { tsdb_shipper = {
active_index_directory = "/var/lib/loki/boltdb-shipper-active"; active_index_directory = "/var/lib/loki/tsdb-shipper-active";
cache_location = "/var/lib/loki/boltdb-shipper-cache"; cache_location = "/var/lib/loki/tsdb-shipper-cache";
cache_ttl = "24h"; cache_ttl = "24h";
#shared_store = "filesystem";
}; };
filesystem = { filesystem = {
@ -95,10 +93,6 @@
reject_old_samples_max_age = "168h"; reject_old_samples_max_age = "168h";
}; };
#chunk_store_config = {
# max_look_back_period = "0s";
#};
table_manager = { table_manager = {
retention_deletes_enabled = false; retention_deletes_enabled = false;
retention_period = "0s"; retention_period = "0s";
@ -106,7 +100,6 @@
compactor = { compactor = {
working_directory = "/var/lib/loki"; working_directory = "/var/lib/loki";
#shared_store = "filesystem";
compactor_ring = { compactor_ring = {
kvstore = { kvstore = {
store = "inmemory"; store = "inmemory";