Compare commits
2 Commits
856118c5fe
...
82f1f556e6
| Author | SHA1 | Date | |
|---|---|---|---|
| 82f1f556e6 | |||
| 46edfc5a29 |
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ job "prometheus" {
|
|||||||
args = [
|
args = [
|
||||||
"--storage.tsdb.path", "/opt/prometheus",
|
"--storage.tsdb.path", "/opt/prometheus",
|
||||||
"--web.listen-address", "0.0.0.0:9090",
|
"--web.listen-address", "0.0.0.0:9090",
|
||||||
"--storage.tsdb.retention.time", "90d",
|
"--storage.tsdb.retention.time", "30d",
|
||||||
"--web.enable-admin-api"
|
"--web.enable-admin-api"
|
||||||
]
|
]
|
||||||
force_pull = true
|
force_pull = true
|
||||||
|
|||||||
Reference in New Issue
Block a user