-
Notifications
You must be signed in to change notification settings - Fork 905
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
service.version does not appear as metric label #8176
Comments
hi @spedersen-emailage, I'm guessing you are using prometheus exporter for metrics? check out: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#resource-attributes, it looks like |
@trask Thanks for the response! Unfortunately, the Aside from the default instrumentation metrics, the only additional metrics for the associated job are:
We use the Could this be an issue with Prometheus? |
it looks like this was implemented and should be available in 1.24.0: open-telemetry/opentelemetry-java#5039
ah, it looks like you are using OTLP from Java -> Collector? The PR above implements you may need to see what the level of support for |
Hey @spedersen-emailage , Did you manage to consult the collector team about this? |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Describe the bug
The
service.version
attribute does not appear as a label in metrics, but does appear as a resource in spans.Steps to reproduce
Enable
service.version
attribute via Java option or environment variable.What did you expect to see?
A
version
(or equivalent) label in metrics.What did you see instead?
No
version
(or equivalent) label in metrics.What version are you using?
1.24.0
Environment
OS: Amazon Linux 2
Runtime (if different from JDK above): openjdk 17.0.6 2023-01-17 LTS
Additional context
We have three resource attributes defined via the
OTEL_RESOURCE_ATTRIBUTES
environment variable:service.name
service.instance.id
service.version
We found that
service.name
andservice.instance.id
appear as labels in our metrics, butservice.version
does not. It does, however, appear in spans/traces as a resource. This is outlined in the table below:At this point I'm uncertain if this "problem" originates from the JIA, OTel itself, or Grafana. Or if this is by design. I can move this to a feature enhancement issue if it becomes one.
I would appreciate any insight you could offer while I continue to troubleshoot.
The text was updated successfully, but these errors were encountered: