loki
by 4ops
Helm chartv1.7.3App 2.2.1Verified publisher
Loki: like Prometheus, but for logs.
About this chart
loki
Loki: like Prometheus, but for logs.
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add kube-ops https://charts.kube-ops.io
$ helm repo update
$ helm upgrade my-release kube-ops/loki --install --namespace my-namespace --create-namespace --wait
Uninstalling the Chart
To uninstall the chart:
$ helm uninstall my-release --namespace my-namespace
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| alertingGroups | list | [] | |
| annotations | object | {} | |
| authEnabled | bool | false | Enables authentication through the X-Scope-OrgID header, which must be present if true. If false, the OrgID will always be set to "fake". |
| autoscaling.enabled | bool | false | Specifies the horizontal pod autoscaling is enabled |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| chunkStoreConfig | object | {"cacheLookupsOlderThan":"0s","chunkCacheConfig":{"background":{"writebackBuffer":10000,"writebackGoroutines":10},"defaultValidity":"1h","enableFifocache":false,"fifocache":{"maxSizeBytes":"","maxSizeItems":0,"validity":"0s"},"memcached":{"batchSize":262144,"expiration":"1h","parallelism":100},"memcachedClient":{"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"},"redis":{"db":1,"endpoint":"","expiration":"0s","idleTimeout":"0s","masterName":"","maxConnectionAge":"0s","password":"","poolSize":0,"timeout":"100ms"}},"maxLookBackPeriod":"0s","writeDedupeCacheConfig":{"background":{"writebackBuffer":10000,"writebackGoroutines":10},"defaultValidity":"1h","enableFifocache":false,"fifocache":{"maxSizeBytes":"","maxSizeItems":0,"validity":"0s"},"memcached":{"batchSize":262144,"expiration":"1h","parallelism":100},"memcachedClient":{"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"},"redis":{"db":1,"endpoint":"","expiration":"0s","idleTimeout":"0s","masterName":"","maxConnectionAge":"0s","password":"","poolSize":0,"timeout":"100ms"}}} | Configures how Loki will store data in the specific store. |
| chunkStoreConfig.cacheLookupsOlderThan | string | "0s" | Cache index entries older than this period. Default is disabled. |
| chunkStoreConfig.chunkCacheConfig | object | {"background":{"writebackBuffer":10000,"writebackGoroutines":10},"defaultValidity":"1h","enableFifocache":false,"fifocache":{"maxSizeBytes":"","maxSizeItems":0,"validity":"0s"},"memcached":{"batchSize":262144,"expiration":"1h","parallelism":100},"memcachedClient":{"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"},"redis":{"db":1,"endpoint":"","expiration":"0s","idleTimeout":"0s","masterName":"","maxConnectionAge":"0s","password":"","poolSize":0,"timeout":"100ms"}} | The cache configuration for storing chunks |
| chunkStoreConfig.chunkCacheConfig.background | object | {"writebackBuffer":10000,"writebackGoroutines":10} | Configures the background cache when memcached is used. |
| chunkStoreConfig.chunkCacheConfig.background.writebackBuffer | int | 10000 | How many chunks to buffer for background write back to memcached. |
| chunkStoreConfig.chunkCacheConfig.background.writebackGoroutines | int | 10 | How many goroutines to use to write back to memcached. |
| chunkStoreConfig.chunkCacheConfig.defaultValidity | string | "1h" | The default validity of entries for caches unless overridden. |
| chunkStoreConfig.chunkCacheConfig.enableFifocache | bool | false | Enable in-memory cache. |
| chunkStoreConfig.chunkCacheConfig.fifocache.maxSizeBytes | string | "" | Maximum number of entries in the cache. |
| chunkStoreConfig.chunkCacheConfig.fifocache.validity | string | "0s" | The expiry duration for the cache. |
| chunkStoreConfig.chunkCacheConfig.memcached | object | {"batchSize":262144,"expiration":"1h","parallelism":100} | Configures memcached settings. |
| chunkStoreConfig.chunkCacheConfig.memcached.batchSize | int | 262144 | Configures how many keys to fetch in each batch request. |
| chunkStoreConfig.chunkCacheConfig.memcached.expiration | string | "1h" | Configures how long keys stay in memcached. |
| chunkStoreConfig.chunkCacheConfig.memcached.parallelism | int | 100 | Maximum active requests to memcached. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient | object | {"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"} | Configures how to connect to one or more memcached servers. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.consistentHash | bool | true | Whether or not to use a consistent hash to discover multiple memcached servers. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.host | string | "" | The hostname to use for memcached services when caching chunks. If empty, no memcached will be used. A SRV lookup will be used. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.maxIdleConns | int | 100 | The maximum number of idle connections in the memcached client pool. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.service | string | "memcached" | SRV service used to discover memcached servers. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.timeout | string | "100ms" | Maximum time to wait before giving up on memcached requests. |
| chunkStoreConfig.chunkCacheConfig.memcachedClient.updateInterval | string | "1m" | The period with which to poll the DNS for memcached servers. |
| chunkStoreConfig.chunkCacheConfig.redis.db | int | 1 | Database index. |
| chunkStoreConfig.chunkCacheConfig.redis.endpoint | string | "" | Redis Server endpoint to use for caching. A comma-separated list of endpoints for Redis Cluster or Redis Sentinel. If empty, no redis will be used. |
| chunkStoreConfig.chunkCacheConfig.redis.expiration | string | "0s" | How long keys stay in the redis. |
| chunkStoreConfig.chunkCacheConfig.redis.idleTimeout | string | "0s" | Close connections after remaining idle for this duration. If the value is zero, then idle connections are not closed. |
| chunkStoreConfig.chunkCacheConfig.redis.masterName | string | "" | Redis Sentinel master name. An empty string for Redis Server or Redis Cluster. |
| chunkStoreConfig.chunkCacheConfig.redis.maxConnectionAge | string | "0s" | Close connections older than this duration. If the value is zero, then the pool does not close connections based on age. |
| chunkStoreConfig.chunkCacheConfig.redis.password | string | "" | Password to use when connecting to redis. |
| chunkStoreConfig.chunkCacheConfig.redis.poolSize | int | 0 | Maximum number of connections in the pool. |
| chunkStoreConfig.chunkCacheConfig.redis.timeout | string | "100ms" | Maximum time to wait before giving up on redis requests. |
| chunkStoreConfig.maxLookBackPeriod | string | "0s" | Limit how long back data can be queried. Default is disabled. This should always be set to a value less than or equal to what is set in tableManager.retentionPeriod . |
| chunkStoreConfig.writeDedupeCacheConfig | object | {"background":{"writebackBuffer":10000,"writebackGoroutines":10},"defaultValidity":"1h","enableFifocache":false,"fifocache":{"maxSizeBytes":"","maxSizeItems":0,"validity":"0s"},"memcached":{"batchSize":262144,"expiration":"1h","parallelism":100},"memcachedClient":{"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"},"redis":{"db":1,"endpoint":"","expiration":"0s","idleTimeout":"0s","masterName":"","maxConnectionAge":"0s","password":"","poolSize":0,"timeout":"100ms"}} | The cache configuration for deduplicating writes |
| chunkStoreConfig.writeDedupeCacheConfig.background | object | {"writebackBuffer":10000,"writebackGoroutines":10} | Configures the background cache when memcached is used. |
| chunkStoreConfig.writeDedupeCacheConfig.background.writebackBuffer | int | 10000 | How many chunks to buffer for background write back to memcached. |
| chunkStoreConfig.writeDedupeCacheConfig.background.writebackGoroutines | int | 10 | How many goroutines to use to write back to memcached. |
| chunkStoreConfig.writeDedupeCacheConfig.defaultValidity | string | "1h" | The default validity of entries for caches unless overridden. |
| chunkStoreConfig.writeDedupeCacheConfig.enableFifocache | bool | false | Enable in-memory cache. |
| chunkStoreConfig.writeDedupeCacheConfig.fifocache.maxSizeBytes | string | "" | Maximum number of entries in the cache. |
| chunkStoreConfig.writeDedupeCacheConfig.fifocache.validity | string | "0s" | The expiry duration for the cache. |
| chunkStoreConfig.writeDedupeCacheConfig.memcached | object | {"batchSize":262144,"expiration":"1h","parallelism":100} | Configures memcached settings. |
| chunkStoreConfig.writeDedupeCacheConfig.memcached.batchSize | int | 262144 | Configures how many keys to fetch in each batch request. |
| chunkStoreConfig.writeDedupeCacheConfig.memcached.expiration | string | "1h" | Configures how long keys stay in memcached. |
| chunkStoreConfig.writeDedupeCacheConfig.memcached.parallelism | int | 100 | Maximum active requests to memcached. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient | object | {"consistentHash":true,"host":"","maxIdleConns":100,"service":"memcached","timeout":"100ms","updateInterval":"1m"} | Configures how to connect to one or more memcached servers. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.consistentHash | bool | true | Whether or not to use a consistent hash to discover multiple memcached servers. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.host | string | "" | The hostname to use for memcached services when caching chunks. If empty, no memcached will be used. A SRV lookup will be used. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.maxIdleConns | int | 100 | The maximum number of idle connections in the memcached client pool. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.service | string | "memcached" | SRV service used to discover memcached servers. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.timeout | string | "100ms" | Maximum time to wait before giving up on memcached requests. |
| chunkStoreConfig.writeDedupeCacheConfig.memcachedClient.updateInterval | string | "1m" | The period with which to poll the DNS for memcached servers. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.db | int | 1 | Database index. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.endpoint | string | "" | Redis Server endpoint to use for caching. A comma-separated list of endpoints for Redis Cluster or Redis Sentinel. If empty, no redis will be used. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.expiration | string | "0s" | How long keys stay in the redis. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.idleTimeout | string | "0s" | Close connections after remaining idle for this duration. If the value is zero, then idle connections are not closed. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.masterName | string | "" | Redis Sentinel master name. An empty string for Redis Server or Redis Cluster. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.maxConnectionAge | string | "0s" | Close connections older than this duration. If the value is zero, then the pool does not close connections based on age. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.password | string | "" | Password to use when connecting to redis. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.poolSize | int | 0 | Maximum number of connections in the pool. |
| chunkStoreConfig.writeDedupeCacheConfig.redis.timeout | string | "100ms" | Maximum time to wait before giving up on redis requests. |
| compactor | object | {} | |
| deploymentType | string | "StatefulSet" | |
| distributor | object | {} | |
| dnsConfig | object | {} | |
| dnsPolicy | string | "" | |
| ephemeralContainers | list | [] | |
| extraArgs | list | [] | Additional CLI arguments for application |
| extraContainers | list | [] | Specifies additional containers |
| extraEnvVars | list | [] | Additional environment variables |
| extraVolumeMounts | list | [] | |
| extraVolumes | list | [] | Additional mounts for application |
| frontend | object | {"compressResponses":false,"downstreamUrl":"","logQueriesLongerThan":"0s","maxOutstandingPerTenant":100} | Configures the Loki query-frontend. |
| frontend.compressResponses | bool | false | Compress HTTP responses. |
| frontend.downstreamUrl | string | "" | URL of downstream Prometheus. |
| frontend.logQueriesLongerThan | string | "0s" | Log queries that are slower than the specified duration. Set to 0 to disable. Set to < 0 to enable on all queries. |
| frontend.maxOutstandingPerTenant | int | 100 | Maximum number of outstanding requests per tenant per frontend; requests beyond this error with HTTP 429. |
| frontendWorker | object | {} | |
| fullnameOverride | string | "" | Overrides the full name |
| global.imagePullPolicy | string | "IfNotPresent" | Image download policy ref: https:// |
Deploy loki with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 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 chartloki is pinned at v1.7.3 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