Skip to content
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

hostmetrics and kubeletstats are missing service name and id #1060

Closed
JBodkin-Amphora opened this issue Mar 4, 2024 · 1 comment
Closed

Comments

@JBodkin-Amphora
Copy link

JBodkin-Amphora commented Mar 4, 2024

The hostmetrics and kubeletstats receivers don't add a service.name and service.instance.id attribute, therefore when the OpenTelemetry Collector creates a target_info metric, the resource attributes are copied to the new metric and dropped from the scraped metric. This leaves the scraped metric with no resource attributes.

Should these attributes be added in the pipeline using the OpenTelemetry Collector pod name and id?

Reference: https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/#resource-attributes-1

@JBodkin-Amphora
Copy link
Author

This seems to be the cause of the issue: open-telemetry/opentelemetry-collector-contrib#27839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant