Skip to content

Influx DB

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

All InfluxDB config is stored under the influxDB object in the config.

js
{
  influxDB+: {
    annotations:: {
      deployment: {},
      ingress: {},
      pod: {},
    },
    bucket:: 'metrics',
    env:: {},
    image:: 'influxdb:2.7.1-alpine',
    ingress:: {},
    labels:: {
      deployment: {},
      pod: {},
      selector: {'app.kubernetes.io/name': 'influx-db'},
    },
    name:: 'influx-db',
    organisation:: 'observability',
    path:: '/',
    ports:: {
      external: 80,
      internal: 8086,
    },
    resources:: {
      cpu: {request: '100m', limit: '4'},
      memory: {request: '128Mi', limit: '512Mi'},
    },
    retention:: '1w',
    secrets:: {
      username: '<fill with InfluxDB username>',
      password: '<fill with InfluxDB password>',
      token: '<fill with API token>',
    },
    security:: {
      tls: {
        enabled: false,
        issuer: '<fill with certificate issuer>',
      },
    },
  },
}
FieldDescription / Default
annotations.deploymentAnnotations added at the deployment (topmost) level.
{}
annotations.ingressAnnotations added to the ingress.
{}
annotations.podAnnotations added at the pod level.
{}
bucketBucket name used for the metrics.
metrics
envEnvironment variables that are added to the Influx DB container.
{}
hostHostname where the UI is exposed.
undefined
imageDocker image that gets deployed.
influxdb:2.7.1-alpine
ingress.classNameClass name added to the Influx DB ingress.
undefined
labels.deploymentLabels added at the deployment (topmost) level.
{}
labels.podLabels added at the pod level.
{}
labels.selectorSelector used for all InfluxDB k8s resources.
{'app.kubernetes.io/name': 'influx-db'}
nameName used for the k8s resources.
influx-db
organisationName of the organisation.
observability
pathPath where the UI is exposed.
/
ports.externalExternal port where the UI is exposed.
80
ports.internalInternal port used inside the container.
8086
resources.cpu.requestMin. requested amount of CPU time.
100m
resources.cpu.limitMax. allowed amount of CPU time.
4
resources.memory.requestMin. requested amount of memory.
128Mi
resources.memory.limitMax. allowed amount of memory.
512Mi
retentionRetention policy used for the metrics bucket.
1w
secrets.usernameUsername for the InfluxDB.
<fill with InfluxDB username>
secrets.passwordPassword for the InfluxDB.
<fill with InfluxDB password>
secrets.tokenToken that can be used to access the InfluxDB API.
<fill with API token>
security.tls.enabledEnables TLS, creating a certificate to access the Influx UI over HTTPS.
false
security.tls.issuerIssuer or ClusterIssuer where the certificate is requested. See cert-manager documentation on how to set one up.
<fill with certificate issuer>