Skip to content

Vector

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

All Vector config is stored under the vector object in the config.

js
{
  vector+: {
    annotations:: {
      deployment: {},
      pod: {},
    },
    env:: {},
    image:: 'timberio/vector:0.29.1-alpine',
    labels:: {
      deployment: {},
      pod: {},
      selector: {'app.kubernetes.io/name': 'vector'},
    },
    logging:: {
      kubernetes: {
        transformations: [
          importstr '../../config/logs/kubernetes/aggregator.toml',
        ],
      }
    },
    metrics:: {
      custom: [importstr '../../config/metrics/custom-aggregator.toml'],
    },
    monitoring:: {
      influxDB: {
        bucket: "metrics",
        endpoint: "http://influx-db/",
        org: "observability",
      }
    },
    name:: 'vector',
    ports:: {
      external: 8686,
      internal: 8686,
    },
    resources:: {
      cpu: {request: '100m', limit: '500m'},
      memory: {request: '128Mi', limit: '256Mi'},
    },
  },
}
FieldDescription / Default
annotations.deploymentAnnotations added at the deployment (topmost) level.
{}
annotations.podAnnotations added at the pod level.
{}
envEnvironment variables that are added to the Vector container.
{}
imageDocker image that gets deployed.
timberio/vector:0.29.1-alpine
labels.deploymentLabels added at the deployment (topmost) level.
{}
labels.podLabels added at the pod level.
{}
labels.selectorSelector used for all Vector k8s resources.
{'app.kubernetes.io/name': 'vector'}
logging.kubernetes.transformationsArray of Vector configs to customize Kubernetes logs.
[importstr 'aggregator.toml']
metrics.customArray of Vector config to add custom metrics.
[importstr 'custom-aggregator.toml']
monitoring.influxDB.bucketBucket name of the Influx DB.
metrics
monitoring.influxDB.endpointEndpoint of the Influx DB.
http://influx-db/
monitoring.influxDB.orgOrganisation name of the Influx DB.
observability
nameName used for the k8s resources.
vector
ports.externalExternal port of the Vector API.
8686
ports.internalInternal port of the Vector API.
8686
resources.cpu.requestMin. requested amount of CPU time.
100m
resources.cpu.limitMax. allowed amount of CPU time.
500m
resources.memory.requestMin. requested amount of memory.
128Mi
resources.memory.limitMax. allowed amount of memory.
256Mi