HELM安装LOKI
S3的权限配置
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": "",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::dev-loki-east1-s3"
},
{
"Effect": "Allow",
"Principal": "",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::dev-loki-east1-s3/*"
}
]
}
DynamoDB
分区键 h (String)
排序键 r (Binary)
loki.yaml:
schema_config:
configs:
from: 2020-05-15
store: aws
object_store: s3
schema: v11
index:
prefix: loki_
storage_config:
aws:
s3: s3://access_key:secret_access_key@region/bucket_name
dynamodb:
dynamodb_url: dynamodb://access_key:secret_access_key@region