From a4284c8c4f5ac7be2fd61ef8916b995a023958da Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Thu, 11 Dec 2025 13:50:35 +0800 Subject: [PATCH] =?UTF-8?q?docs(loki):=20=E6=9B=B4=E6=96=B0readme=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AE=89=E8=A3=85=E5=92=8C=E5=A4=9A=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加loki服务的安装步骤和多租户认证配置示例,方便后续部署参考 --- dbSer/loki/readme.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 +``` +