sumologic-otel-collector icon indicating copy to clipboard operation
sumologic-otel-collector copied to clipboard

[k8sprocessor] Missing documentation for 'pod_association'

Open kasia-kujawa opened this issue 3 years ago • 1 comments

Missing documentation for 'pod_association' in k8sprocessor, configuration option is used for example here.

kasia-kujawa avatar Sep 17 '21 07:09 kasia-kujawa

Related to this issue:

There is silent assumption that metric must have specific attributes to extract Pod ID, for example: when:

pod_association:
  - from: build_hostname

metrics must come with k8s.namespace.name and k8s.pod.name attributes, see these lines:

  • https://github.com/SumoLogic/sumologic-otel-collector/blob/83406585be84acccc8d9122b37fce1b37d9dd35c/pkg/processor/k8sprocessor/pod_association.go#L89
  • https://github.com/SumoLogic/sumologic-otel-collector/blob/83406585be84acccc8d9122b37fce1b37d9dd35c/pkg/processor/k8sprocessor/pod_association.go#L94

Tested with commit: e4da82574e18de51781458dd44d9206311d7e3b5

kasia-kujawa avatar Sep 17 '21 13:09 kasia-kujawa