diff --git a/dbSer/loki/readme.md b/dbSer/loki/readme.md index eebd72e..1f0599a 100644 --- a/dbSer/loki/readme.md +++ b/dbSer/loki/readme.md @@ -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 +``` +