Retrieving old loki data from s3

I have an old loki data stored in Minio and I want to query them with loki. but grafana always show “Data source connected, but no labels received. Verify that Loki and Promtail is configured properly.” I don’t have promtail because the application is not running, I just want to visualized my stored data.

this my loki config file :


server:
http_listen_port: 3100
memberlist:
join_members:
- loki-read:7946
schema_config:
configs:
- from: 2021-08-01
store: boltdb-shipper
object_store: s3
schema: v11
index:
prefix: index_
period: 24h
common:
path_prefix: /loki
replication_factor: 1
storage:
s3:
endpoint: minio:9000
insecure: true
bucketnames: loki-data
access_key_id: loki
secret_access_key: supersecret
s3forcepathstyle: true
ring:
kvstore:
store: memberlist

querier:
query_store_only: true

ruler:
storage:
s3:
bucketnames: loki-ruler