link to grafana documentation for loki provisioning

pull/424/head
Marcus Efraimsson 6 years ago
parent dc1854eeaa
commit 8d214a5313
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A
  1. 39
      docs/grafana-provisioning.md
  2. 2
      docs/usage.md

@ -1,39 +0,0 @@
# Configuring Grafana via Provisioning
It is possible to configure Grafana datasources using config files with Grafana’s provisioning system. You can read more about how it works in the [Grafana documentation](http://docs.grafana.org/administration/provisioning/#datasources).
Here is a simple example of the provisioning yaml config for the Grafana Loki datasource:
```yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://localhost:3100
editable: false
```
Example with basic auth:
```yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://localhost:3100
editable: false
basicAuth: true
basicAuthUser: my_user
basicAuthPassword: test_password
```
Make sure to adjust the url and authentication to your needs, the `url` should be:
- `http://localhost:3100` when run Loki locally or with docker
- `http://loki:3100` when run Loki with docker-compose, or with helm in kubernetes
`basicAuthUser` and `basicAuthPassword` should same as your Grafana setting.

@ -2,7 +2,7 @@
To query and display your logs you need to configure your Loki to be a datasource in your Grafana.
To configure the datasource via provisioning see [Configuring Grafana via Provisioning](grafana-provisioning.md).
To configure the datasource via provisioning see [Configuring Grafana via Provisioning](http://docs.grafana.org/features/datasources/loki/#configure-the-datasource-with-provisioning).
_Note_: Querying your logs without Grafana is possible by using [logcli](./logcli.md).

Loading…
Cancel
Save