Upgrade & try to set a limited retention period.

This commit is contained in:
2025-03-13 14:34:59 +00:00
parent 46edfc5a29
commit 82f1f556e6

View File

@@ -25,7 +25,7 @@ job "loki" {
task "loki" { task "loki" {
driver = "docker" driver = "docker"
config { config {
image = "grafana/loki:2.9.4" image = "grafana/loki:2.9.13"
args = [ args = [
"-config.file", "-config.file",
"local/loki/local-config.yaml", "local/loki/local-config.yaml",
@@ -77,6 +77,7 @@ storage_config:
compactor: compactor:
working_directory: /tmp/loki/boltdb-shipper-compactor working_directory: /tmp/loki/boltdb-shipper-compactor
shared_store: filesystem shared_store: filesystem
retention_enabled: true
limits_config: limits_config:
reject_old_samples: true reject_old_samples: true
reject_old_samples_max_age: 168h reject_old_samples_max_age: 168h
@@ -85,11 +86,12 @@ limits_config:
ingestion_burst_size_mb: 20 ingestion_burst_size_mb: 20
per_stream_rate_limit: 5MB per_stream_rate_limit: 5MB
per_stream_rate_limit_burst: 10MB per_stream_rate_limit_burst: 10MB
retention_period: 744h
chunk_store_config: chunk_store_config:
max_look_back_period: 0s max_look_back_period: 0s
table_manager: table_manager:
retention_deletes_enabled: false retention_deletes_enabled: true
retention_period: 0s retention_period: 744h
EOH EOH
destination = "local/loki/local-config.yaml" destination = "local/loki/local-config.yaml"
} }