If you are running on Grafana Cloud, use:
$ export GRAFANA_ADDR=https://logs-us-west1.grafana.net
$ export GRAFANA_USERNAME=
$ export GRAFANA_PASSWORD=
Otherwise you can point LogCLI to a local instance directly without needing a username and password:
$ export GRAFANA_ADDR=http://localhost:3100
Note: If you are running Loki behind a proxy server and you have authentication configured, you will also have to pass in GRAFANA_USERNAME and GRAFANA_PASSWORD accordingly.
$ logcli labels job
https://logs-dev-ops-tools1.grafana.net/api/prom/label/job/values
cortex-ops/consul
cortex-ops/cortex-gw
|