Adding global tags for metrics #4420
EugeneKrapivin
started this conversation in
General
Replies: 2 comments 10 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
-
I found this solution to be what I needed. I had dotnet sending attributes the same exact way, but
In your open telemetry collector config file, you should have an exporter for prometheus. Update it to look like this. exporters:
prometheus:
endpoint: "0.0.0.0:8889"
resource_to_telemetry_conversion:
enabled: true |
Beta Was this translation helpful? Give feedback.
1 reply
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