grafana-loki

by joaquinito2051

Helm chartv2.4.6App 2.6.1

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.

Overview of Grafana Loki

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployments/statefulsets["sleep"]
diagnosticMode.argsArgs to override all containers in the deployments/statefulsets["infinity"]

Common Grafana Loki Parameters

NameDescriptionValue
loki.image.registryGrafana Loki image registrydocker.io
loki.image.repositoryGrafana Loki image repositorybitnami/grafana-loki
loki.image.tagGrafana Loki image tag (immutable tags are recommended)2.6.1-debian-11-r30
loki.image.digestGrafana Loki image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
loki.image.pullPolicyGrafana Loki image pull policyIfNotPresent
loki.image.pullSecretsGrafana Loki image pull secrets[]
loki.configurationLoki components configuration""
loki.overrideConfigurationLoki components configuration override. Values defined here takes precedence over loki.configuration{}
loki.existingConfigmapName of a ConfigMap with the Loki configuration""
loki.dataDirpath to the Loki data directory/bitnami/grafana-loki
loki.containerPorts.httpLoki components web container port3100
loki.containerPorts.grpcLoki components GRPC container port9095
loki.containerPorts.gossipRingLoki components Gossip Ring container port7946
loki.gossipRing.service.ports.httpGossip Ring HTTP headless service port7946
loki.gossipRing.service.annotationsAdditional custom annotations for Gossip Ring headless service{}

Compactor Deployment Parameters

NameDescriptionValue
compactor.enabledEnable Compactor deploymentfalse
compactor.extraEnvVarsArray with extra environment variables to add to compactor nodes[]
compactor.extraEnvVarsCMName of existing ConfigMap containing extra env vars for compactor nodes""
compactor.extraEnvVarsSecretName of existing Secret containing extra env vars for compactor nodes""
compactor.commandOverride default container command (useful when using custom images)[]
compactor.argsOverride default container args (useful when using custom images)[]
compactor.replicaCountNumber of Compactor replicas to deploy1
compactor.livenessProbe.enabledEnable livenessProbe on Compactor nodestrue
compactor.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe60
compactor.livenessProbe.periodSecondsPeriod seconds for livenessProbe10
compactor.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe1
compactor.livenessProbe.failureThresholdFailure threshold for livenessProbe3
compactor.livenessProbe.successThresholdSuccess threshold for livenessProbe1
compactor.readinessProbe.enabledEnable readinessProbe on Compactor nodestrue
compactor.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe60
compactor.readinessProbe.periodSecondsPeriod seconds for readinessProbe10
compactor.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
compactor.readinessProbe.failureThresholdFailure threshold for readinessProbe3
compactor.readinessProbe.successThresholdSuccess threshold for readinessProbe1
compactor.startupProbe.enabledEnable startupProbe on Compactor containersfalse
compactor.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe30
compactor.startupProbe.periodSecondsPeriod seconds for startupProbe10
compactor.startupProbe.timeoutSecondsTimeout seconds for startupProbe1
compactor.startupProbe.failureThresholdFailure threshold for startupProbe15
compactor.startupProbe.successThresholdSuccess threshold for startupProbe1
compactor.customLivenessProbeCustom livenessProbe that overrides the default one{}
compactor.customReadinessProbeCustom readinessProbe that overrides the default one{}
compactor.customStartupProbeCustom startupProbe that overrides the default one{}
compactor.resources.limitsThe resources limits for the compactor containers{}
compactor.resources.requestsThe requested resources for the compactor containers{}
compactor.podSecurityContext.enabledEnabled Compactor pods' Security Contexttrue
compactor.podSecurityContext.fsGroupSet Compactor pod's Security Context fsGroup1001
compactor.containerSecurityContext.enabledEnabled Compactor containers' Security Contexttrue
compactor.containerSecurityContext.runAsUserSet 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgrafana-loki is pinned at v2.4.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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