Install the Helm Chart
This Helm Chart installation runs the Grafana Loki cluster within a Kubernetes cluster.
If object storge is configured, this chart configures Loki to run
write targets in a scalable, highly available architecture (3 replicas of each) designed to work with AWS S3 object storage. It will also configure meta-monitoring of metrics and logs.
It is not possible to run the scalable mode with the
Before you begin:
- Helm 3 or above. See Installing Helm.
- A running Kubernetes cluster.
- A Prometheus operator installation in case meta-monitoring should be used.
To deploy Loki in scalable mode:
Add Grafana’s chart repository to Helm:
helm repo add grafana https://grafana.github.io/helm-charts
Update the chart repository:
helm repo update
Configure the object storage:
Create the configuration file
storage: bucketNames: chunks: chunks ruler: ruler admin: admin type: s3 s3: s3: <WHAT SHOULD GO HERE?> endpoint: <endpoint> region: <AWS region> secretAccessKey: <AWS secret access key> accessKeyId: <AWS access key ID> s3ForcePathStyle: false insecure: false
Consult the Reference for configuring otehr storage providers.
Define the AWS S3 credentials in the file.
Upgrade the Loki deployment with this command.
helm upgrade --values values.yaml loki grafana/loki
Related Loki resources
Getting started with logging and Grafana Loki (Part 3 of 4)
Join this webinar to learn why correlating metrics and logs is critical across the development lifecycle, and how Loki helps reduce logging costs and operations overhead.
Logging with Loki: Essential configuration settings
This webinar focuses on Grafana Loki configuration including agents Promtail and Docker; the Loki server; and Loki storage for popular backends.