Skip to content

Unable to Filter Metrics Using Resource Attributes - resource_attributes #4887

Answered by pmm-sumo
mskhan-devops asked this question in Q&A
Discussion options

You must be logged in to vote

I think this question is duplicated here: open-telemetry/opentelemetry-collector-contrib#8106

Perhaps k8s.pod.name is assigned in a consecutive processor? If that's the case, order in processors section needs to be modified.

Hi, are you sure that k8s.pod.name is a resource attribute and not a data point attribute?

In case of the that, you can use groupbyattrs processor to move it to resource, e.g.:

processors:
  groupbyattrs:
    keys:
      - k8s.pod.name

I have also added a logger to the pipeline but it did not throw anything informative.

You need to set the debug level, e.g.

exporters:
  logging/debug:
    loglevel: debug

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mskhan-devops
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mskhan-devops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants