Skip to content

k8s: Add service.instance.id to k8s attributes#11844

Merged
osullivandonal merged 5 commits intoelastic:mainfrom
osullivandonal:add-service-instance-id-to-k8s-attributes
Dec 16, 2025
Merged

k8s: Add service.instance.id to k8s attributes#11844
osullivandonal merged 5 commits intoelastic:mainfrom
osullivandonal:add-service-instance-id-to-k8s-attributes

Conversation

@osullivandonal
Copy link
Contributor

@osullivandonal osullivandonal commented Dec 16, 2025

What does this PR do?

This PR adds service.instance.id to the k8s attributes.

Why is it important?

These changes will allow some apps in Kibana to correlate otel signals.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Related issues

This solves this issue -> #11598

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...
@osullivandonal osullivandonal requested a review from a team as a code owner December 16, 2025 11:44
@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2025

This pull request does not have a backport label. Could you fix it @osullivandonal? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.
@osullivandonal osullivandonal added the backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches label Dec 16, 2025
dmathieu
dmathieu previously approved these changes Dec 16, 2025
florianl
florianl previously approved these changes Dec 16, 2025
ChrsMark
ChrsMark previously approved these changes Dec 16, 2025
@osullivandonal osullivandonal dismissed stale reviews from ChrsMark, florianl, and dmathieu via b132855 December 16, 2025 14:01
@osullivandonal osullivandonal enabled auto-merge (squash) December 16, 2025 14:57
@osullivandonal osullivandonal merged commit 1d0d9da into elastic:main Dec 16, 2025
22 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 9.1 9.2 9.3

@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2025

backport 9.1 9.2 9.3

❌ No backport have been created

Details

GitHub error: Branch not found

mergify bot pushed a commit that referenced this pull request Dec 16, 2025
* Add service.instance.id to the EDOT collector and daemoncollector for
kube-stack

* Add service.instance.id to the EDOT collector and daemoncollector for
managed_otlp kube-stack

* Add a changelog for adding service.instance.id to the k8s attributes

(cherry picked from commit 1d0d9da)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
mergify bot pushed a commit that referenced this pull request Dec 16, 2025
* Add service.instance.id to the EDOT collector and daemoncollector for
kube-stack

* Add service.instance.id to the EDOT collector and daemoncollector for
managed_otlp kube-stack

* Add a changelog for adding service.instance.id to the k8s attributes

(cherry picked from commit 1d0d9da)
osullivandonal added a commit that referenced this pull request Dec 17, 2025
…tes (#11851)

* k8s: Add `service.instance.id` to k8s attributes (#11844)

* Add service.instance.id to the EDOT collector and daemoncollector for
kube-stack

* Add service.instance.id to the EDOT collector and daemoncollector for
managed_otlp kube-stack

* Add a changelog for adding service.instance.id to the k8s attributes

(cherry picked from commit 1d0d9da)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml

* Resolve conflicts with 9.1 for managed_otlp, as k8sattribues does not
contain service.name or service.version, service.instance.id shouldn't
be added.

* Resolve other conflicts in managed_otlp

The managed_otlp file doesn't contain service.name, service.version, so
we shouldn't add service.instance.id to it

---------

Co-authored-by: Dónal O'Sullivan <92297851+osullivandonal@users.noreply.github.com>
Co-authored-by: Dónal O'Sullivan <donal.osullivan@elastic.co>
osullivandonal added a commit that referenced this pull request Dec 17, 2025
* Add service.instance.id to the EDOT collector and daemoncollector for
kube-stack

* Add service.instance.id to the EDOT collector and daemoncollector for
managed_otlp kube-stack

* Add a changelog for adding service.instance.id to the k8s attributes

(cherry picked from commit 1d0d9da)

Co-authored-by: Dónal O'Sullivan <92297851+osullivandonal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches

5 participants