forked from DevOps/deploy.stack
docs(loki): 更新readme添加安装和多租户配置说明
添加loki服务的安装步骤和多租户认证配置示例,方便后续部署参考
This commit is contained in:
@@ -2,8 +2,26 @@
|
||||
|
||||
[loki docker 安装文档](https://grafana.com/docs/loki/latest/setup/install/docker/)
|
||||
|
||||
### 安装 loki 服务
|
||||
```
|
||||
mkdir -p loki
|
||||
cd loki
|
||||
wget https://raw.githubusercontent.com/grafana/loki/main/cmd/loki/loki-config.yaml -O loki-config.yaml
|
||||
```
|
||||
|
||||
### 配置多租户认证配置
|
||||
|
||||
[参考文档](https://grafana.com/docs/loki/latest/configuration/#auth_enabled)
|
||||
|
||||
```yaml
|
||||
auth_enabled: true
|
||||
|
||||
limits_config:
|
||||
allow_private_metrics: true
|
||||
enforce_metric_name: false
|
||||
reject_old_samples: true
|
||||
reject_old_samples_max_age: 168h
|
||||
|
||||
multitenancy_enabled: true
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user