grafanaloki: How to use minio for hot storage and s3 for cold storage? - Stack Overflow

I have minio hosted on minio:9000 below is my current config---server:http_listen_address: 0.0.0.0htt

I have minio hosted on minio:9000 below is my current config

---
server:
  http_listen_address: 0.0.0.0
  http_listen_port: 3100

auth_enabled: false

memberlist:
  join_members: ["read", "write", "backend"]
  dead_node_reclaim_time: 30s
  gossip_to_dead_nodes_time: 15s
  left_ingesters_timeout: 30s
  bind_addr: ['0.0.0.0']
  bind_port: 7946
  gossip_interval: 2s

schema_config:
  configs:
    - from: 2023-01-01
      store: tsdb
      object_store: s3
      schema: v13
      index:
        prefix: index_
        period: 24h
common:
  path_prefix: /loki
  replication_factor: 1
  compactor_address: http://backend:3100
  ring:
    kvstore:
      store: memberlist

ruler:
  storage:
    s3:
      bucketnames: abc-loki-data
      endpoint: 

compactor:
  working_directory: /tmp/compactor
  compaction_interval: 10m
  retention_enabled: true
  retention_delete_delay: 2h
  retention_delete_worker_count: 150
  delete_request_store: s3

storage_config:
  aws:
    s3: s3://us-west-2
    bucketnames: abc-loki-data
    endpoint: 

I used to have the below under common

common:
  path_prefix: /loki
  replication_factor: 1
  compactor_address: http://backend:3100
  storage:
    s3:
      endpoint: minio:9000
      insecure: true
      bucketnames: loki-data
      access_key_id: loki
      secret_access_key: supersecret
      s3forcepathstyle: true

What i want to achieve right now is, for data between 0 to 48hrs it lives in minio, then for data after 48 hours it lives in s3. Is that possible with loki config?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745203387a4616460.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信