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

Added k8s components to otel distribution #4908

Merged
merged 33 commits into from
Jun 20, 2024

Conversation

michalpristas
Copy link
Contributor

@michalpristas michalpristas commented Jun 11, 2024

Added Extensions

  • file_storage

Added Receivers

  • kubeletstats
  • k8sclusterreceiver
  • hostmetricsreceiver

Added Processors
- resourcedetectionprocessor

Fixes: #4723
Fixes: #4902
Fixes: #4724

cc @ChrsMark @AlexanderWert

@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@ycombinator ycombinator linked an issue Jun 11, 2024 that may be closed by this pull request
1 task
@ycombinator
Copy link
Contributor

Could we add this receiver to the test configuration file too, as mentioned in the Definition of Done in #4902?

@ycombinator ycombinator added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Jun 11, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@ycombinator ycombinator requested review from ChrsMark and removed request for blakerouse June 11, 2024 22:14
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can tests be added to cover that they exists? That way we can ensure a tests catches if they are accidentally removed?

@AlexanderWert
Copy link
Member

AlexanderWert commented Jun 12, 2024

@michalpristas @ycombinator @andrzej-stencel
Just discussed with @gizas, for the Kubernetes story we will also need:

Let's make sure to include those as well (either in this PR or a follow up)

@ChrsMark
Copy link
Member

k8sattributesprocessor is already in: #4893. So only k8sclusterreceiver is missing.

@michalpristas
Copy link
Contributor Author

added k8sclusterreceiver
let's see if i can fit tests in this sprint

Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm fine with adding the tests in follow-up PR(s).

@ChrsMark
Copy link
Member

@ishleenk17 @AlexanderWert will we need the resourcedetection processor as well?

@ishleenk17
Copy link

@ishleenk17 @AlexanderWert will we need the resourcedetection processor as well?

Yes, this is needed for getting all the metadata.

@michalpristas
Copy link
Contributor Author

michalpristas commented Jun 13, 2024

i added CC0-1.0 license to allow list due to indirect dependency. this should be fine
just FYI @cmacknz
already added in different PR

Copy link
Contributor

mergify bot commented Jun 19, 2024

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b otel/added-k8s-comps upstream/otel/added-k8s-comps
git merge upstream/main
git push upstream otel/added-k8s-comps

@michalpristas michalpristas merged commit 6b78791 into elastic:main Jun 20, 2024
13 checks passed
@michalpristas michalpristas added backport-v8.14.0 Automated backport with mergify and removed backport-skip labels Jun 21, 2024
mergify bot pushed a commit that referenced this pull request Jun 21, 2024
(cherry picked from commit 6b78791)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/agent/cmd/common.go
#	internal/pkg/otel/README.md
#	internal/pkg/otel/components.go
#	internal/pkg/otel/run_test.go
#	internal/pkg/otel/testdata/all-components.yml
michalpristas added a commit that referenced this pull request Jun 21, 2024
* Added k8s components to otel distribution (#4908)

(cherry picked from commit 6b78791)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	internal/pkg/agent/cmd/common.go
#	internal/pkg/otel/README.md
#	internal/pkg/otel/components.go
#	internal/pkg/otel/run_test.go
#	internal/pkg/otel/testdata/all-components.yml

* conflicts

* resolved conflict with 8.14 branch

* remove 8.15 commands

* missing file

---------

Co-authored-by: Michal Pristas <[email protected]>
Co-authored-by: Andrzej Stencel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.14.0 Automated backport with mergify skip-changelog Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
8 participants