# Grafana setup

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696916832823/30bd7104-a1f4-402c-b002-d475702a2409.png align="center")

Press on Explore

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696916934238/93df2c3b-7f5f-402a-a7d9-0505f038ca4c.png align="center")

and then press "prometheus"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696916999550/7ada4244-9450-4503-bc23-2904421ca137.png align="center")

click on metrics browser

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696917057908/aba49d9f-1afa-4c02-9c15-5fc298177c15.png align="center")

search "memory" and then select "machine\_memory\_bytes" now press "use query"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696917669468/06915a63-7a6f-4873-b510-dec6b01f0517.png align="center")

now search other thing called "pods" and select "kubelet\_running\_pods" and select "use query"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696917854329/0535fce3-06fd-4d80-9567-6cd2c9a47166.png align="center")

now select "loki(default)"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696918114959/0f306b96-8807-464c-af3a-a5880974d73c.png align="center")

search in log browser as shown in the screenshot and then "Run query"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696918620314/098e4869-cc08-4650-ab97-77c73789f950.png align="center")

now open new tab on browser and search "grafana prometheus dashboard"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696918969188/42794354-91fb-4d8c-a52b-816321db136d.png align="center")

select this one

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696918989442/4cfe9780-e26c-43e9-8b48-25ad0eab0ef6.png align="center")

copy ID to clipboard

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696919119820/2abd9d4e-e9e8-4a82-9639-90e8b57a1a92.png align="center")

now go to your grafana and press "Import"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696919162208/3e151ab6-7d85-4769-ab9e-4ef320f9d32b.png align="center")

Paste herewhat you copied here and then click on "load"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696919280123/ccd35662-31e8-4371-9a64-1760b316905b.png align="center")

now change the database here to "prometheus" and then "import"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696919355271/d9b0ffb7-b2c6-4334-a398-556705e91172.png align="center")

now you will shown automatically all the real live dashboard being show here

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696919459951/f126851e-f6a0-4ac3-a724-1ed08a903e39.png align="center")

now open new tab on browser and search "grafana loki dashboard" and then click on first link as shown in the above screenshot

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696920055113/f1f79229-93e2-467c-88c0-456c6a71f0f4.png align="center")

then copy to clipboard of this "Copy ID to clipboard"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696920115584/8ce6b441-ac21-46fa-a038-ca9e4f725c28.png align="center")

again to your grafana and then "import"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696920174341/999bb66e-c1d2-44b6-ac97-615458a7104e.png align="center")

paste here to what did you copied and then "load"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1696920338896/13ad5b3a-be92-44c5-9b1c-3472b528402d.png align="center")

after load setup these setting according to the above screenshot

now that's all for all
