|
Hello there! I've got a grafana agent in flow mode setup with an otlp receiver ( I understand that So, the question is: is there a way to add attributes to a metric based on the resource? Alternatively, it's possible I'm looking at this the wrong way. In that case, what would be a better approach to have these as labels in my metrics? Should I solve this by changing my metrics at the source instead of trying to enrich them in the agent? Thanks a lot! |
Replies: 1 comment
|
After spending more time on this, I figured the missing piece of the puzzle: I forgot to have |
After spending more time on this, I figured the missing piece of the puzzle: I forgot to have
service.instance.idattribute in my otel resource, which means I didn't have aninstancelabel 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 withtarget_infoon theinstancelabel.