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: Done
    • Icon: Undefined Undefined
    • rhosdt-3.9
    • None
    • OpenTelemetry
    • None
    • Tracing Sprint # 283

      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
      

              ploffay@redhat.com Pavol Loffay
              fercoli Fabio Massimo Ercoli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: