Skip to content

How to add labels from resource attributes when exporting to prometheus in flow mode? #4688

Closed Answered by madjar
madjar asked this question in Q&A
Discussion options

You must be logged in to vote

After spending more time on this, I figured the missing piece of the puzzle: I forgot to have service.instance.id attribute in my otel resource, which means I didn't have an instance label in my metrics. Now that I've added it, a lot of things fall into place, and getting other attributes from the resources is a matter of joining a metric with target_info on the instance label.

Replies: 1 comment

Comment options

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