Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/production/helm/README.md

1.2 KiB

Deploy Loki to Kubernetes with Helm

Prerequisites

Make sure you have the helm configure on your cluster:

$ helm init

Clone grafana/loki repository and navigate to production helm directory:

$ git clone https://github.com/grafana/loki.git
$ cd loki/production/helm

Deploy Loki and Promtail to your cluster

$ helm install . -n loki --namespace <YOUR-NAMESPACE>

Deploy Grafana to your cluster

To install Grafana on your cluster with helm, use the following command:

$ helm install stable/grafana -n loki-grafana -f grafana.yaml --namespace <YOUR-NAMESPACE>

To get the admin password for the Grafana pod, run the following command:

$  kubectl get secret --namespace <YOUR-NAMESPACE> loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

To access the Grafana UI, run the following command:

$ kubectl port-forward --namespace <YOUR-NAMESPACE> service/loki-grafana 3000:80

Navigate to http://localhost:3000 and login with admin and the password output above. Then follow the instructions for adding the loki datasource, using the URL http://loki:3100/.