Dans Dev Diary 2.0 Help

Loki Setup

Setup of Loki via Helm

Configure Loki in Grafana

  1. install Loki via Helm

    helm install loki grafana/loki -f microservices-values.yaml -n monitoring
  2. verify the deployment with:

    kubectl get pods -n monitoring
    Loki installed pods
  3. Get the link for Grafana from the helm output once it's finished

    Loki helm output

    http://loki-gateway.monitoring.svc.cluster.local

Configure Grafana

  1. Go to Data Sources in Grafana

  2. Select Loki

  3. Set the URL to the Loki URL something like http://loki-gateway.monitoring.svc.cluster.local

  4. Set the `X-Scope-OrgID` header in Grafana, under datasources > Loki > HTTP headers

  5. Header

    Value

    X-Scope-OrgID

    default

Last modified: 26 February 2025