Adding global tags for metrics #4420
EugeneKrapivin
started this conversation in
General
Replies: 1 comment 9 replies
-
Resource is what you need to model environments, service name etc. Is that not working for you? Could you elaborate more on why is it not working? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently at the stage of finding all the missing pieces to have a comparable reporting "feeling" we are currently having.
Currently all metrics reported from our services have some default tags/dimensions, like: dc, environment, service name. We aren't recording them manually every time we record a metric, but rather set those values as defaults at setup time. this really help since when querying we sometimes have metrics from multiple services, multiple service versions, multiple environments and even at time multiple datacenters in the same TSDB.
how would we go around adding those tags to all metrics exported from the service? I thought that adding those as attributes to the resource would do the trick
however, I was wrong.
I would assume that there would be a way to set default tags on a
Meter
so that the process of reporting default tags is not repetitive on eachAdd
/Record
call.Beta Was this translation helpful? Give feedback.
All reactions