Upgrade & try to set a limited retention period.
This commit is contained in:
@@ -25,7 +25,7 @@ job "loki" {
|
||||
task "loki" {
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "grafana/loki:2.9.4"
|
||||
image = "grafana/loki:2.9.13"
|
||||
args = [
|
||||
"-config.file",
|
||||
"local/loki/local-config.yaml",
|
||||
@@ -77,6 +77,7 @@ storage_config:
|
||||
compactor:
|
||||
working_directory: /tmp/loki/boltdb-shipper-compactor
|
||||
shared_store: filesystem
|
||||
retention_enabled: true
|
||||
limits_config:
|
||||
reject_old_samples: true
|
||||
reject_old_samples_max_age: 168h
|
||||
@@ -85,11 +86,12 @@ limits_config:
|
||||
ingestion_burst_size_mb: 20
|
||||
per_stream_rate_limit: 5MB
|
||||
per_stream_rate_limit_burst: 10MB
|
||||
retention_period: 744h
|
||||
chunk_store_config:
|
||||
max_look_back_period: 0s
|
||||
table_manager:
|
||||
retention_deletes_enabled: false
|
||||
retention_period: 0s
|
||||
retention_deletes_enabled: true
|
||||
retention_period: 744h
|
||||
EOH
|
||||
destination = "local/loki/local-config.yaml"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user