Compare commits

...

2 Commits

2 changed files with 6 additions and 4 deletions

View File

@@ -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"
}

View File

@@ -28,7 +28,7 @@ job "prometheus" {
args = [
"--storage.tsdb.path", "/opt/prometheus",
"--web.listen-address", "0.0.0.0:9090",
"--storage.tsdb.retention.time", "90d",
"--storage.tsdb.retention.time", "30d",
"--web.enable-admin-api"
]
force_pull = true