grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

grafana.md (801B)


      1 # grafana
      2 
      3 install `kubectl` and `doctl`
      4 
      5 - kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux
      6 - doctl: https://github.com/digitalocean/doctl#downloading-a-release-from-github
      7 
      8 ## grafana loki
      9 
     10 spin up grafana loki k8s cluster from [do marketplace](https://cloud.digitalocean.com/marketplace/5db68268316b031f2a877a63?i=8738e9).
     11 
     12 save cluster config
     13 ```
     14 doctl kubernetes cluster list
     15 doctl kubernetes cluster kubeconfig save <cluster_name>
     16 ```
     17 
     18 get console admin passwd
     19 ```
     20 kubectl get secret -n loki loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode
     21 ```
     22 
     23 port-forward to access console
     24 ```
     25 kubectl -n loki get pods
     26 kubectl -n loki port-forward <loki-grafana_pod_name> 3000
     27 ```
     28 
     29 navigate to [grafana loki](http://localhost:3000/explore) console