我已将 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