docs(logcli): clarify usage of GRAFANA_ADDR (#822)

Adds an example of how to setup the `GRAFANA_ADDR` environment variable when not using Grafana Cloud but rather a local or otherwise hosted instance of Loki
pull/826/head
Aditya C S 6 years ago committed by sh0rez
parent 459e4e3f4e
commit 9fe1a8f152
  1. 9
      docs/logcli.md

@ -26,10 +26,19 @@ Now `logcli` is in your current directory.
### Example
If you are running on Grafana cloud, use:
```
$ export GRAFANA_ADDR=https://logs-us-west1.grafana.net
$ export GRAFANA_USERNAME=<username>
$ export GRAFANA_PASSWORD=<password>
```
Otherwise, when running e.g. [locally](https://github.com/grafana/loki/tree/master/production#run-locally-using-docker), point it to your Loki instance:
```
$ export GRAFANA_ADDR=http://localhost:3100
```
> Note: If you are running loki behind a proxy server and have an authentication setup. You will have to pass URL, username and password accordingly. Please refer to the [docs](https://github.com/adityacs/loki/blob/master/docs/operations.md) for more info.
```
$ logcli labels job
https://logs-dev-ops-tools1.grafana.net/api/prom/label/job/values
cortex-ops/consul

Loading…
Cancel
Save