Просмотр исходного кода

Merge pull request #16210 from grafana/16187_docs

docs: loki provisioning
Daniel Lee 6 лет назад
Родитель
Сommit
9f58b85693
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:
 datasources:
   - name: Loki
   - name: Loki
     type: loki
     type: loki
+    access: proxy
     url: http://localhost:3100
     url: http://localhost:3100
     jsonData:
     jsonData:
       maxLines: 1000
       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
+```