grafana-loki
Grafana Loki is a horizontally scalable, highly available, and multi-tenant log aggregation system. It provides real-time long tailing and full persistence to object storage.
About this chart
Grafana Loki packaged by Bitnami
Grafana Loki is a horizontally scalable, highly available, and multi-tenant log aggregation system. It provides real-time long tailing and full persistence to object storage.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/grafana-loki
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a Grafana Loki Deployment in a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Learn more about the default configuration of the chart.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
helm install my-release my-repo/grafana-loki
The command deploys grafana-loki on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployments/statefulsets | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployments/statefulsets | ["infinity"] |
Common Grafana Loki Parameters
| Name | Description | Value |
|---|---|---|
loki.image.registry | Grafana Loki image registry | docker.io |
loki.image.repository | Grafana Loki image repository | bitnami/grafana-loki |
loki.image.tag | Grafana Loki image tag (immutable tags are recommended) | 2.6.1-debian-11-r30 |
loki.image.digest | Grafana Loki image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
loki.image.pullPolicy | Grafana Loki image pull policy | IfNotPresent |
loki.image.pullSecrets | Grafana Loki image pull secrets | [] |
loki.configuration | Loki components configuration | "" |
loki.overrideConfiguration | Loki components configuration override. Values defined here takes precedence over loki.configuration | {} |
loki.existingConfigmap | Name of a ConfigMap with the Loki configuration | "" |
loki.dataDir | path to the Loki data directory | /bitnami/grafana-loki |
loki.containerPorts.http | Loki components web container port | 3100 |
loki.containerPorts.grpc | Loki components GRPC container port | 9095 |
loki.containerPorts.gossipRing | Loki components Gossip Ring container port | 7946 |
loki.gossipRing.service.ports.http | Gossip Ring HTTP headless service port | 7946 |
loki.gossipRing.service.annotations | Additional custom annotations for Gossip Ring headless service | {} |
Compactor Deployment Parameters
| Name | Description | Value |
|---|---|---|
compactor.enabled | Enable Compactor deployment | false |
compactor.extraEnvVars | Array with extra environment variables to add to compactor nodes | [] |
compactor.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for compactor nodes | "" |
compactor.extraEnvVarsSecret | Name of existing Secret containing extra env vars for compactor nodes | "" |
compactor.command | Override default container command (useful when using custom images) | [] |
compactor.args | Override default container args (useful when using custom images) | [] |
compactor.replicaCount | Number of Compactor replicas to deploy | 1 |
compactor.livenessProbe.enabled | Enable livenessProbe on Compactor nodes | true |
compactor.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 60 |
compactor.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
compactor.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 1 |
compactor.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
compactor.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
compactor.readinessProbe.enabled | Enable readinessProbe on Compactor nodes | true |
compactor.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 60 |
compactor.readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
compactor.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
compactor.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
compactor.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
compactor.startupProbe.enabled | Enable startupProbe on Compactor containers | false |
compactor.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 30 |
compactor.startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
compactor.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 1 |
compactor.startupProbe.failureThreshold | Failure threshold for startupProbe | 15 |
compactor.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
compactor.customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
compactor.customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
compactor.customStartupProbe | Custom startupProbe that overrides the default one | {} |
compactor.resources.limits | The resources limits for the compactor containers | {} |
compactor.resources.requests | The requested resources for the compactor containers | {} |
compactor.podSecurityContext.enabled | Enabled Compactor pods' Security Context | true |
compactor.podSecurityContext.fsGroup | Set Compactor pod's Security Context fsGroup | 1001 |
compactor.containerSecurityContext.enabled | Enabled Compactor containers' Security Context | true |
compactor.containerSecurityContext.runAsUser | Set Compactor containers' Security Context runAsUser |
Deploy grafana-loki with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grafana-loki on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgrafana-loki is pinned at v2.4.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply