Uploaded image for project: 'Distributed Tracing'
  1. Distributed Tracing
  2. TRACING-5903

KUBE_NODE_NAME not set configuring k8sattributes processor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • OpenTelemetry
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      In order to filter by namespace, I tried to add a processor to the `OpenTelemetryCollector` CR:

      processors: 
          k8sattributes: 
            filter: 
              node_from_env_var: KUBE_NODE_NAME
      

      Following the OCP OpenTelemetry documentation

      But on the collector pods I have the following error:

      Error: invalid configuration: processors::k8sattributes::filter: `node_from_env_var` is configured but envvar "KUBE_NODE_NAME" is not set
      2025/12/18 16:18:43 collector server run finished with error: invalid configuration: processors::k8sattributes::filter: `node_from_env_var` is configured but envvar "KUBE_NODE_NAME" is not set
      

              Unassigned Unassigned
              fercoli Fabio Massimo Ercoli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: