Skip to content

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Sep 22, 2025

What does this PR do?

This PR enables k8seventsreceiver in kube-stack.

Part of #9791.
Requires #9826

PR to update the K8s OTel dashboard: elastic/integrations#15454

Why is it important?

k8sevents receiver will be used directly for the K8s Events related panels as #9791 explains.

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

Tested with managed_otlp/values.yaml:

defaultCRConfig:
  image:
    repository: "docker.elastic.co/elastic-agent/elastic-agent"
    tag: "9.2.0-SNAPSHOT"

K8s Events flow in:

Screenshot 2025-09-23 at 12 28 26 PM

Related issues

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?
  • ...

@ChrsMark ChrsMark requested review from a team as code owners September 22, 2025 12:16
Copy link
Contributor

mergify bot commented Sep 22, 2025

This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
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.

@ChrsMark ChrsMark force-pushed the add_k8s_events_kube_stack branch from a89ed4b to abbe309 Compare September 22, 2025 12:17
@ChrsMark ChrsMark force-pushed the add_k8s_events_kube_stack branch from abbe309 to d172342 Compare September 22, 2025 14:13
@ChrsMark ChrsMark changed the title Add k8s events kube stack [kube-stack] Add k8s events receiver Sep 22, 2025
@ChrsMark ChrsMark force-pushed the add_k8s_events_kube_stack branch 2 times, most recently from 9fa562e to ca87775 Compare September 23, 2025 09:28
@ChrsMark ChrsMark enabled auto-merge (squash) September 24, 2025 06:34
rogercoll
rogercoll previously approved these changes Sep 24, 2025
@ChrsMark ChrsMark requested a review from rogercoll September 24, 2025 14:21
@ChrsMark
Copy link
Member Author

@elastic/elastic-agent-control-plane could you review please?

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @ChrsMark

@ChrsMark ChrsMark merged commit d486f92 into elastic:main Sep 25, 2025
23 checks passed
v1v added a commit that referenced this pull request Sep 26, 2025
* upstream: (505 commits)
  Update journald tests now that Filebeat supports watching folders (#10131)
  [deploy/kubernetes]: add info about hostPID for Universal Profiling (#10173)
  Fall back to process runtime if otel runtime is unsupported (#10087)
  Conditionall check for ms_tls13kdf build tag (#10160)
  [docs][edot] add entry for profiles (#10163)
  edot/docs: add support for profiles (#10146)
  Add Logstash exporter (#10137)
  Add back publish to serverless. (#10159)
  Improve Integration test documentation (#10155)
  Fix multiarch service image push from main to serverless (#10129)
  Forward migrate action to endpoint (#9801)
  Comment out check for ms_tls13kdf tag for FIPS-capable binaries (#10148)
  [otel] add receivers: apache, iis, mysql, postgresql, sqlserver v0.135.0 (#9344)
  Add k8sevents receiver in kube-stack (#10086)
  feat: emit system resource metrics for EDOT subprocess (#10003)
  [AutoOps] Configure OTel Exporter to Send Maximum-sized Batches (#10126)
  keep enrollment token when replacing data with signed (#10115)
  Revert "Publish `elastic-agent-service` container directly to serverless from main (#9583)" (#10127)
  Add agent_policy_id and policy_revision_idx to checkin requests (#9931)
  remove resource/k8s processor and use k8sattributes processor for service attributes (#10108)
  ...
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.

4 participants