Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 743 Bytes

LOGS.md

File metadata and controls

22 lines (14 loc) · 743 Bytes

To view logs of resources on the k8s cluster:

We use loki-stack on our cluster to collect, store, and query logs. To access the browser interface to visualize and query logs:

Open Grafana

First, ensure you have kubectl setup and talking to the cluster. Then:

kubectl port-forward --namespace loki-stack service/loki-stack-grafana 3000:80

This will make the Grafana UI accessible at http://localhost:3000 in your browser.

Login to Grafana

Get auth token to login with:

kubectl get secret --namespace loki-stack loki-stack-grafana -o jsonpath="{.data.admin-password}" | base64 -d ; echo

Then login with username admin and password as the auth token obtained above.