Skip to content

Commit

Permalink
Merge pull request #13500 from simondeziel/loki-instance
Browse files Browse the repository at this point in the history
doc/howto/logs_loki: `loki.instance` needs to match the Prometheus job name
  • Loading branch information
tomponline authored May 23, 2024
2 parents 274c497 + a3fab42 commit b975d57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/howto/logs_loki.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Once you have a Loki server up and running, you can instruct LXD to send logs to

lxc config set loki.api.url=http://<loki_server_IP>:3100

```{note}
If Loki logs are to be viewed in the Grafana dashboard, ensure the `loki.instance` configuration key matches the name of the Prometheus job. See {ref}`grafana`.
```

## Query Loki logs

Loki logs are typically viewed/queried using Grafana but Loki provides a command line utility called LogCLI allowing to query logs from your Loki server without the need for Grafana.
Expand Down

0 comments on commit b975d57

Please sign in to comment.