浏览代码

docs: loki provisioning

Marcus Efraimsson 6 年之前
父节点
当前提交
29fc1ed77b
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      docs/sources/features/datasources/loki.md

+ 18 - 0
docs/sources/features/datasources/loki.md

@@ -113,7 +113,25 @@ apiVersion: 1
 datasources:
   - name: Loki
     type: loki
+    access: proxy
     url: http://localhost:3100
     jsonData:
       maxLines: 1000
 ```
+
+Here's another with basic auth:
+
+```yaml
+apiVersion: 1
+
+datasources:
+  - name: Loki
+    type: loki
+    access: proxy
+    url: http://localhost:3100
+    basicAuth: true
+    basicAuthUser: my_user
+    basicAuthPassword: test_password
+    jsonData:
+      maxLines: 1000
+```