Skip to content

Loki

This section shows all available options that can be overridden in the config.jsonnet file.

All Loki config is stored under the loki object in the config.

js
{
  loki+: {
    annotations:: {
      deployment: {},
      pod: {},
    },
    env:: {},
    image:: 'grafana/loki:2.8.1',
    labels:: {
      deployment: {},
      pod: {},
      selector: {'app.kubernetes.io/name': 'loki'},
    },
    name:: 'loki',
    ports:: {
      external: 80,
      internal: 3100,
    },
    resources:: {
      cpu: {request: '100m', limit: '1'},
      memory: {request: '128Mi', limit: '512Mi'},
    },
    retention:: '672h',
  },
}
FieldDescription / Default
annotations.deploymentAnnotations added at the deployment (topmost) level.
{}
annotations.podAnnotations added at the pod level.
{}
envEnvironment variables that are added to the Loki container.
{}
imageDocker image that gets deployed.
grafana/loki:2.8.1
labels.deploymentLabels added at the deployment (topmost) level.
{}
labels.podLabels added at the pod level.
{}
labels.selectorSelector used for all Loki k8s resources.
{'app.kubernetes.io/name': 'loki'}
nameName used for the k8s resources.
loki
ports.externalExternal port where Loki is exposed.
80
ports.internalInternal port used inside the container.
3100
resources.cpu.requestMin. requested amount of CPU time.
100m
resources.cpu.limitMax. allowed amount of CPU time.
1
resources.memory.requestMin. requested amount of memory.
128Mi
resources.memory.limitMax. allowed amount of memory.
512Mi
retentionRetention policy used for the log files (in hours).
672h