How to globally set Attributes for ALL Metrics #7695
Answered
by
mateuszrzeszutek
lokeshmavale
asked this question in
Q&A
-
Hi Team, I am using Prometheus and OTLP exporter. By using following technique, I can customize metrics and add attributes only when its otlp exporter. How do I add a hook to Prometheus exporter while using Java agent? autoConfiguration.addMetricExporterCustomizer(this::configureSdkMetricExporterProvider); |
Beta Was this translation helpful? Give feedback.
Answered by
mateuszrzeszutek
Feb 1, 2023
Replies: 1 comment 1 reply
-
Hey @lokeshmavale , Please take a look at my answer in open-telemetry/opentelemetry-java#5163 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lokeshmavale
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @lokeshmavale ,
Please take a look at my answer in open-telemetry/opentelemetry-java#5163