Skip to content

Set fullnameOverride and validate Otel kube-stack deployment datastreams are being written (metrics, traces) #7754

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

Merged
merged 24 commits into from
Apr 28, 2025

Conversation

rogercoll
Copy link
Contributor

@rogercoll rogercoll commented Apr 8, 2025

What does this PR do?

Adds tests to ensure the Helm chart is correctly deployed and data pushed to Elasticsearch:

  • Validates metrics collected with the kubeletstats receiver are written to Elasticsearch.
  • Deploys a Java application to validate auto-instrumentation works properly and the corresponding traces documents are available in Elasticsearch. As an alternative, I tried to install the OpenTelemetry demo Helm Chart and assert its traces, but it is too heavy (big images, e.g. flagd → 1.2GB) for the testing timeouts.

Why is it important?

Fixes #7381

Copy link
Contributor

mergify bot commented Apr 8, 2025

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

@rogercoll rogercoll force-pushed the add_datastream_tests branch from 3c7c0c7 to eb6ecf2 Compare April 8, 2025 13:01
@rogercoll rogercoll changed the title Add datastream tests [chore] Validate kube-stack datastreams are being written Apr 8, 2025
@rogercoll rogercoll force-pushed the add_datastream_tests branch from eb6ecf2 to 963d70b Compare April 8, 2025 15:18
@rogercoll rogercoll changed the title [chore] Validate kube-stack datastreams are being written [chore] Validate kube-stack datastreams are being written (metrics, logs, traces) Apr 10, 2025
@rogercoll rogercoll changed the title [chore] Validate kube-stack datastreams are being written (metrics, logs, traces) [chore] Validate Otel kube-stack deployment datastreams are being written (metrics, logs, traces) Apr 10, 2025
@rogercoll rogercoll marked this pull request as ready for review April 10, 2025 11:14
@rogercoll rogercoll requested review from a team as code owners April 10, 2025 11:14
@rogercoll rogercoll added the backport-active-all Automated backport with mergify to all the active branches label Apr 10, 2025
@rogercoll rogercoll changed the title [chore] Validate Otel kube-stack deployment datastreams are being written (metrics, logs, traces) [chore] Validate Otel kube-stack deployment datastreams are being written (metrics, traces) Apr 11, 2025
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Apr 11, 2025
@rogercoll rogercoll dismissed stale reviews from ChrsMark and swiatekm via b624221 April 28, 2025 07:55
Copy link

@rogercoll rogercoll requested review from ChrsMark and swiatekm April 28, 2025 09:51
@ChrsMark ChrsMark merged commit 8ec0229 into elastic:main Apr 28, 2025
12 checks passed
Copy link
Contributor

@Mergifyio backport 8.17 8.18 8.19 9.0

Copy link
Contributor

mergify bot commented Apr 28, 2025

mergify bot pushed a commit that referenced this pull request Apr 28, 2025
…ams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/otel_helm_test.go
mergify bot pushed a commit that referenced this pull request Apr 28, 2025
…ams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/kubernetes_agent_standalone_test.go
#	testing/integration/otel_helm_test.go
mergify bot pushed a commit that referenced this pull request Apr 28, 2025
…ams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/otel_helm_test.go
mergify bot pushed a commit that referenced this pull request Apr 28, 2025
…ams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)
rogercoll added a commit that referenced this pull request Apr 28, 2025
…ams are being written (metrics, traces) (#7754) (#8003)

(cherry picked from commit 8ec0229)

Co-authored-by: Roger Coll <[email protected]>
rogercoll added a commit that referenced this pull request Apr 28, 2025
…tack deployment datastreams are being written (metrics, traces) (#8000)

* Set fullnameOverride and validate Otel kube-stack deployment datastreams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/kubernetes_agent_standalone_test.go
#	testing/integration/otel_helm_test.go

* fix: merge conflicts

---------

Co-authored-by: Roger Coll <[email protected]>
rogercoll added a commit that referenced this pull request Apr 29, 2025
…tack deployment datastreams are being written (metrics, traces) (#8001)

* Set fullnameOverride and validate Otel kube-stack deployment datastreams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/otel_helm_test.go

* fix: merge conflicts

---------

Co-authored-by: Roger Coll <[email protected]>
rogercoll added a commit that referenced this pull request Apr 29, 2025
…tack deployment datastreams are being written (metrics, traces) (#8002)

* Set fullnameOverride and validate Otel kube-stack deployment datastreams are being written (metrics, traces) (#7754)

(cherry picked from commit 8ec0229)

# Conflicts:
#	testing/integration/otel_helm_test.go

* fix: merge conflicts

---------

Co-authored-by: Roger Coll <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-active-all Automated backport with mergify to all the active branches skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functional tests for the opentelemetry-kube-stack configuration
5 participants