最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论