-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instrumentation scope dropped from metrics #188
Comments
micrometer metrics are disabled by default in the agent. What are your settings? |
That micrometer metric was just an example. OTel metrics similarly lack the instrumentation scope if I query prometheus in the otel-lgtm container:
But, the micrometer metric is illustrative -- when micrometer metric export is enabled, there are two Without the instrumentation scope, I can't filter for only the metric I want in my charts.
Here's the configuration I'm using. otel-lgtm is running locally via docker run in the file pointed to by OTEL_JAVAAGENT_CONFIGURATION_FILE :
in my IDE, my run configuration specifies the following env vars to export to the local otel-lgtm container:
|
Thanks for explaining the use case. The only solution I know is to check for the existence of other attributes - BTW, I now realize that scope is not supposed to be part of the attributes - as it's usually not needed. Resource attributes can be promoted though: https://github.com/prometheus/prometheus/blob/main/config/config.go#L1442 |
context:
java spring boot app, instrumented via OTel java agent 2.10.0
(spring boot 3.4.0, java temurin 21.0.1)
in the prometheus data exposed via Grafana, I don't see instrumentation scope in the metrics.
in my application's startup, if I enable additional exporters:
OTEL_METRICS_EXPORTER=otlp,prometheus,console
and query the prom endpoint, I see the instrumentation scope there:
and, in the
console
output, I see instrumentation scope in the OTLP export:but, in the otel-lgtm Grafana, if I query that metric, I don't see a instrumentation scope in the raw attributes of the metric:
The text was updated successfully, but these errors were encountered: