We migrated from loki-stack to the loki Helm chart in AKS and reused the existing Azure Disk (PVC).
The new Loki instance mounts the same disk and writes logs successfully, but historical logs from loki-stack are not visible in Grafana (see setup and values.yaml snippet below).
The old logs should be queryable from the reused disk, but only the new logs are. We have confirmed that both the new and old logs are available on the disk in the data/loki/chunks directory.
Questions
- Is PVC reuse supported across loki-stack ->loki?
- Are config changes required to read old data?
- Is there a recommended migration approach?
Setup
Environment
* AKS (Azure Kubernetes Service)
* Storage: Azure Disk (PVC)
* Old: loki-stack (chart version: 2.10.2)
* New: loki (chart version: 6.53.0)
Config new (loki)
storage:
type: filesystem
schemaConfig:
configs:
- from: "2024-01-01"
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: loki_index_
period: "24h"
storage_config:
boltdb_shipper:
active_index_directory: /data/loki/
cache_location: /data/loki/cache
filesystem:
directory: /var/loki/chunks
...
singleBinary:
enabled: true
replicas: 1
persistence:
enabled: false
extraVolumeMounts:
- name: persistent-storage
mountPath: /data/loki/chunks
extraVolumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: storage-loki-0