diff --git a/doc/howto/grafana.md b/doc/howto/grafana.md index 410c1263c396..c029898ece6f 100644 --- a/doc/howto/grafana.md +++ b/doc/howto/grafana.md @@ -72,5 +72,13 @@ 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. +You can change the `instance` field through the {config:option}`server-loki:loki.instance` configuration key. + +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). + +To set the `loki.instance` configuration key, run the following command: +`lxc config set loki.instance=` + +You can check that setting via: +`lxc config get loki.instance` ```