tfy-loki

by TrueFoundry

Helm chartv0.1.6Verified publisher

Truefoundry Loki Provisioner

About this chart

Loki and Promtail charts packaged by Truefoundry.

Loki configurations

https://github.com/grafana/loki/blob/c6a909b0ec52f2323f161e458e1fff99e9a1e6c0/production/helm/loki/values.yaml

Promtail configurations

https://github.com/grafana/helm-charts/tree/8b9ca8240e4e412f72af2df42f833c94142a3d70/charts/promtail

Parameters

Upstream Loki configurations

NameDescriptionValue
loki.enabledEnable lokitrue
loki.loki.storage.typeMethod to use for storagefilesystem
loki.loki.compactor.shared_storeThe shared store used for storing boltdb files.filesystem
loki.loki.compactor.retention_enabledActivate custom (per-stream,per-tenant) retention.true
loki.loki.auth_enabledEnables authentication through the X-Scope-OrgID headerfalse
loki.loki.limits_config.retention_periodRetention period to apply to stored data.168h
loki.loki.limits_config.max_query_lookbackLimit how far back in time series data and metadata can be queried, up until lookback duration ago.168h
loki.loki.limits_config.split_queries_by_intervalSplit queries by a time interval and execute in parallel.10h
loki.loki.limits_config.max_entries_limit_per_queryMaximum number of log entries that will be returned for a query.30000
loki.singleBinary.replicasNumber of replicas for the single binary1
loki.singleBinary.resources.requests.cpuCPU requests for promtail container0.2
loki.singleBinary.resources.requests.memoryMemory requests for promtail container810Mi
loki.singleBinary.resources.limits.cpuCPU limits for promtail container0.4
loki.singleBinary.resources.limits.memoryMemory limits for promtail container1620Mi
loki.singleBinary.persistence.sizeSize of persistent disk50Gi
loki.singleBinary.persistence.enableStatefulSetAutoDeletePVCEnable StatefulSetAutoDeletePVC featuretrue
promtail.enabledEnable promtailtrue
promtail.config.clients[0].urlLoki push API URLhttp://loki:3100/loki/api/v1/push
promtail.resources.requests.cpuCPU requests for promtail container100m
promtail.resources.requests.memoryMemory requests for promtail container512Mi
promtail.resources.requests.ephemeral-storageEphemeral storage requests for promtail container256Mi
promtail.resources.limits.cpuCPU limits for promtail container200m
promtail.resources.limits.memoryMemory limits for promtail container1024Mi

Deploy tfy-loki with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-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 charttfy-loki is pinned at v0.1.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