# Grafana Explorer

### Loki Datasource configuration in Grafana

1\. Login to Grafana and click **Explore** on the left pane

<figure><img src="/files/RA4uWpHKaRFyPnMXk9nk" alt=""><figcaption></figcaption></figure>

2\. Click add data source and select Loki.

3\. Set the name as Loki, URL as the domain name or IP address and port number.

<figure><img src="/files/5kAQ87C2aXpmwsupCFsy" alt=""><figcaption></figcaption></figure>

4\. You can now click Explore and set Loki at your data source - Select your job label and run query to check the logs.

<figure><img src="/files/gCfccGW3F7PQs5w9ABAf" alt=""><figcaption></figcaption></figure>

5\. The logs for the selected job will be displayed in the below format

<figure><img src="/files/n5fv4HzwYgReY4GSovuo" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devs.peerplays.com/supporting-and-reference-docs/grafana/grafana-explorer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
