Skip to content
Snippets Groups Projects
loki-values-configmap.yaml 1.79 KiB
Newer Older
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: stackspin-loki-values
data:
  values.yaml: |
    # https://github.com/grafana/helm-charts/blob/main/charts/loki/values.yaml
    resources:
      limits:
        cpu: 800m
Varac's avatar
Varac committed
        memory: 1024Mi
Varac's avatar
Varac committed
        memory: 512Mi
    persistence:
      enabled: true
      accessModes:
        - ReadWriteOnce
      size: 10Gi
      annotations: {}
Varac's avatar
Varac committed
    # Prevent RO filesystem on /tmp
    # https://open.greenhost.net/stackspin/stackspin/-/issues/1033
    # Can get removed once https://github.com/grafana/helm-charts/issues/609
    # is fixed also for the loki helm chart.
Varac's avatar
Varac committed
    extraVolumes:
      - name: tmp
        emptyDir: {}
    extraVolumeMounts:
      - name: tmp
        mountPath: /tmp
    config:
      ingester:
        chunk_idle_period: 30m
        chunk_block_size: 1048576
        chunk_retain_period: 15m
      # https://github.com/grafana/loki/blob/main/cmd/loki/loki-local-config.yaml
      # https://grafana.com/docs/loki/latest/operations/storage/retention
      schema_config:
        configs:
          - from: 2021-05-31
            store: boltdb-shipper
            object_store: filesystem
            schema: v11
            index:
              prefix: index_
              period: 24h
Varac's avatar
Varac committed
      # https://grafana.com/docs/loki/latest/operations/storage/retention/
      limits_config:
        retention_period: 48h
        reject_old_samples_max_age: 48h
      chunk_store_config:
        max_look_back_period: 48h
      table_manager:
        retention_deletes_enabled: true
        retention_period: 48h
        compaction_interval: 10m
        retention_enabled: true
        retention_delete_delay: 2h
        retention_delete_worker_count: 150