chore: upgrade Loki 2.9.0 to 3.6.1 with tsdb/v13 schema (refs #98)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 34s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 53s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m31s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

- Update Loki image from 2.9.0 to 3.6.1 in docker-compose.yml
- Migrate schema from v11 to v13, store from boltdb-shipper to tsdb
- Update storage_config to use tsdb_shipper with new index paths
- Remove deprecated shared_store config (removed in Loki 3.0)
- Disable structured metadata (not needed for current setup)
- Preserve 30-day retention policy (720h)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-05 19:26:08 -06:00
parent ccdcf9edeb
commit fc2dc21547
2 changed files with 7 additions and 8 deletions

View File

@@ -15,24 +15,23 @@ ingester:
schema_config: schema_config:
configs: configs:
- from: 2020-01-01 - from: 2020-01-01
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
storage_config: storage_config:
boltdb_shipper: tsdb_shipper:
active_index_directory: /loki/boltdb-shipper-active active_index_directory: /loki/tsdb-index
cache_location: /loki/boltdb-shipper-cache cache_location: /loki/tsdb-cache
shared_store: filesystem
filesystem: filesystem:
directory: /loki/chunks directory: /loki/chunks
compactor: compactor:
working_directory: /loki/compactor working_directory: /loki/compactor
shared_store: filesystem
limits_config: limits_config:
retention_period: 720h # 30 days retention_period: 720h # 30 days
allow_structured_metadata: false

View File

@@ -266,7 +266,7 @@ services:
# Log Aggregation - Loki # Log Aggregation - Loki
mvp-loki: mvp-loki:
image: ${REGISTRY_MIRRORS:-git.motovaultpro.com/egullickson/mirrors}/grafana/loki:2.9.0 image: ${REGISTRY_MIRRORS:-git.motovaultpro.com/egullickson/mirrors}/grafana/loki:3.6.1
container_name: mvp-loki container_name: mvp-loki
restart: unless-stopped restart: unless-stopped
volumes: volumes: