Helm Chart Adding Additional Metadata

Available: Additional Metadata v1.0.4

This feature is available as of the 1.0.4 version of Helm Chart and makes it possible to add additional fields to the logs collected using the Helm chart installation. The fields are added using the static_fields transform, and support environment variable expansion. Additionally, it's now possible to augment the environment using the Kubernetes Downward API.

To configure additional fields on the container logs, add the following section to the values file, and update the installation:

sources:
  containers:
    staticFields:
      FieldName: Value

One method of propagate Kubernetes Downward API information this way is to add, for example the following section:

additionalEnv:
  - name: MY_NODE_NAME
    valueFrom:
      fieldRef:
        fieldPath: spec.nodeName

This will add an environment variable to the container MY_NODE_NAME, which can be configured as a static field value:

sources:
  containers:
    staticFields:
      NodeName: "${MY_NODE_NAME}"