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/loki-stack
Cyril Tovena 54a9e67529
Render loki datasources even if Grafana is disabled. (#2197)
5 years ago
..
templates Render loki datasources even if Grafana is disabled. (#2197) 5 years ago
.helmignore Add loki-stack helm chart 6 years ago
Chart.yaml Render loki datasources even if Grafana is disabled. (#2197) 5 years ago
README.md Add readmes to individual helm charts (#2233) 5 years ago
requirements.yaml helm/loki-stack supports k8s 1.16 (#1238) 6 years ago
values.yaml Helm/loki-stack: refresh default grafana.image.tag to 6.7.0 (#1825) 5 years ago

README.md

Loki-Stack Helm Chart

Prerequisites

Make sure you have Helm installed and deployed to your cluster. Then add Loki's chart repository to Helm:

$ helm repo add loki https://grafana.github.io/loki/charts

You can update the chart repository by running:

$ helm repo update

Deploy Loki and Promtail to your cluster

Deploy with default config

$ helm upgrade --install loki loki/loki-stack

Deploy in a custom namespace

$ helm upgrade --install loki --namespace=loki-stack loki/loki-stack

Deploy with custom config

$ helm upgrade --install loki loki/loki-stack --set "key1=val1,key2=val2,..."

Deploy Loki and Fluent Bit to your cluster

$ helm upgrade --install loki loki/loki-stack \
    --set fluent-bit.enabled=true,promtail.enabled=false

Deploy Grafana to your cluster

The chart loki-stack contains a pre-configured Grafana, simply use --set grafana.enabled=true

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/.