Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grafana.md with additional details on setting loki.instance key value. #13541

Merged
merged 4 commits into from
Jun 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/howto/grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,12 @@ At the bottom of the page, you can see data for each instance.
```{note}
For proper operation of the Loki part of the dashboard, you need to ensure that the `instance` field matches the Prometheus job name.
You can change the `instance` field through the `loki.instance` configuration key.
JohnHammell marked this conversation as resolved.
Show resolved Hide resolved

The Prometheus job_name value can be found in `/var/snap/prometheus/current/prometheus.yml` (if you are using the snap) or `/etc/prometheus/prometheus.yaml` (otherwise).
JohnHammell marked this conversation as resolved.
Show resolved Hide resolved

To set the loki.instance configuration key, run the following command:
JohnHammell marked this conversation as resolved.
Show resolved Hide resolved
`lxc config set loki.instance=<job_name_value>`

You can check that setting via:
`lxc config get loki.instance`
```
Loading