## LOKI 日志收集服务 [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 ```