Hi! I’m trying to add host metrics to my k8s nodes...
# support
r
Hi! I’m trying to add host metrics to my k8s nodes but the “hostname” column is empty. Anyone know how to get it to work? This ie the relevant part of my config:
Copy code
config:
      exporters:
        otlp:
          endpoint: "collector-opentelemetry-collector:4317"
          tls:
            insecure: true
      processors:
        resource:
          attributes:
            - action: copy
              from: k8s.node.name
              to: host.name
        resourcedetection:
          detectors: [kubeadm, k8snode, env]
          k8snode:
            node_from_env_var: K8S_NODE_NAME
            auth_type: serviceAccount
      receivers:
        jaeger: null
        zipkin: null
      service:
        pipelines:
          logs:
            exporters: [otlp]
            processors:
              - resourcedetection
              - resource
              - memory_limiter
              - batch
          metrics:
            exporters: [otlp]
            receivers: [otlp, prometheus]
            processors:
              - resourcedetection
              - resource
              - memory_limiter
              - batch
          traces:
            exporters: [otlp]
            receivers: [otlp]
            processors:
              - resourcedetection
              - resource
              - memory_limiter
              - batch