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

fix(injector, prometheus): drop service.instance.id mappings #280

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

basti1302
Copy link
Member

Do not map the Kubernetes label app.kubernetes.io/instance to the
resource attribute service.instance.id, neither for Prometheus scraping
nor when mapping workload level labels to resource attributes via the
injector.

Also: Only derive service.namespace and service.version from
app.kubernetes.io/version and serivce.namespace from
app.kubernetes.io/part_of respectively if we also derive service.name.

Do not map the Kubernetes label app.kubernetes.io/instance to the
resource attribute service.instance.id, neither for Prometheus scraping
nor when mapping workload level labels to resource attributes via the
injector.

Also: Only derive service.namespace and service.version from
app.kubernetes.io/version and serivce.namespace from
app.kubernetes.io/part_of respectively if we also derive service.name.
Add tests for the app.kubernetes.io/* and resource.opentelemetry.io/*
labels.
@basti1302 basti1302 force-pushed the do-not-map-k8s-label-to-service-instance-id branch from 5043f53 to 935bace Compare February 17, 2025 11:52
@basti1302 basti1302 merged commit b429f9e into main Feb 17, 2025
11 checks passed
@basti1302 basti1302 deleted the do-not-map-k8s-label-to-service-instance-id branch February 17, 2025 12:15
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

Successfully merging this pull request may close these issues.

1 participant