wu-sheng commented on code in PR #11168:
URL: https://github.com/apache/skywalking/pull/11168#discussion_r1281498997


##########
docs/en/setup/backend/ui-grafana.md:
##########
@@ -55,6 +60,27 @@ General settings:
 #### Sampled Records
 Same as the Sort Metrics.
 
+## Configure Log Dashboard
+### Dashboards Settings
+The following steps are the example of config a log dashboard:
+1. Create a dashboard named `Log`.
+2. Configure variables for the dashboard:
+<img src="./grafana-loki-variables1.jpg"/>
+3. Please make sure `service_instance` and `endpoint` variable enabled 
`Include All` option and set `Custom all value` to blank (typed by space button 
on the keyboard):
+<img src="./grafana-loki-variables2.jpg"/>
+4. `Tags` variable is a little different from others, for more details, please 
refer [Ad hoc 
filters](https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/#add-ad-hoc-filters):
+<img src="./grafana-loki-variables3.jpg"/>
+6. After configure, you can select log query variables on the top of the 
dashboard:
+<img src="./grafana-loki-variables4.jpg"/>
+
+### Add Log Panel
+The following steps show how to add a log panel.
+1. Choose `Logs` chart.
+2. Set the `Line limit` value (The max number of logs to return in a query) 
and `Order` value (Determines the sort order of logs).
+3. Add LogQL expressions, use the variables configured above for the labels 
and searching keyword.
+4. Test query and save the panel.
+<img src="./grafana-log-panel.jpg"/>
+
 ## Preview on demo.skywalking.a.o

Review Comment:
   Preview section is also expected later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to