繁体   English   中英

s3 和发电机配置不适用于 Loki

[英]s3 and dynamo configuration not working for Loki

我已将 Loki 配置为在 s3 中保存数据并在 dynamodb 中保存索引,例如https://github.com/grafana/loki/blob/fb318152fe28486640668563548b125c00c7f52b/docs/aws_storage.md

但是 pod 无法以错误启动

level=error ts=2020-06-29T13:04:33.086757753Z caller=table_manager.go:176 msg="error syncing tables" err="InvalidEndpointURL: invalid endpoint uri\ncaused by: parse https://dynamodb.A****A:0.amazonaws.com/: invalid port \":0.amazonaws.com\" after host"

所以目前的配置是

config:
  table_manager:
    retention_deletes_enabled: true
  schema_config:
    configs:
    - from: 2020-01-01
      store: aws
      object_store: aws
      schema: v9
      index:
        prefix: loki_index
        period: 0
  storage_config:
    aws: 
      s3: s3://A***A:0/u***K@eu-west-1/xms-loki-master
      dynamodbconfig:
        dynamodb: dynamodb://A***A:0/u***K@eu-west-1

迟到总比不到好。 您可能会遇到访问密钥中有“/”或“0/”的问题。 两种解决方案:要么重新生成新的访问密钥并确保其中没有斜杠,要么 url 对密钥进行编码(将 / 替换为%2F ),如下所示: https://github.com/grafana/loki/issues/160

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM