loki腾讯云cos存储配置

仅用于参考


auth_enabled: false

server:
  http_listen_port: 3100
  # grpc_listen_port: 9096

common:
  path_prefix: /tmp/loki
  replication_factor: 1
  ring:
    instance_addr: 127.0.0.1
    kvstore:
      store: inmemory

schema_config:
  configs:
    - from: 2020-10-24
      store: boltdb-shipper
      object_store: aws
      schema: v11
      index:
        prefix: index_
        period: 24h
storage_config:
  aws:
    bucketnames: loki-logs-123123                                # 请在腾讯云创建一个对象存储存储桶,并把存储桶名称写到这里
    endpoint: cos.ap-guangzhou.myqcloud.com                            # 腾讯云的对象存储域名后缀
    access_key_id: <Your access key id from TencentCloud>            # 腾讯云 AK
    secret_access_key: <Your secret access key from TencentCloud>    # 腾讯云 SK
    region: ap-guang                                               # 对象存储存储桶地域
  boltdb_shipper:
    active_index_directory: /loki/index
    shared_store: s3
    cache_location: /loki/boltdb-cache
compactor:
  working_directory: /loki/boltdb-shipper-compactor
  shared_store: aws

ruler:
  alertmanager_url: http://localhost:9093

analytics:
  reporting_enabled: false


标签:loki
版权属于:Ricky.D. 所有,转载请注明文章来源。

本文链接: https://www.dwt.life/archives/244/

赞 (0)

评论区

发表评论

人机验证

暂无评论,要不来一发?

回到顶部