-
Notifications
You must be signed in to change notification settings - Fork 204
[OTEL] Hide healthcheckv2 from agent status. #11718
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
Conversation
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
swiatekm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to check if the extension id is the one we injected. Otherwise, you might delete an extension added by the user.
@swiatekm Why don't we do this for the other 2 extensions that are hidden? |
I kinda had the same question after seeing @swiatekm comment. Is it because Nitpick: I think that the filtering should happen at the boundary with user/other systems when preparing the output (1 level up from where this is but since the other filtered extensions are already here I guess we put the filter here for consistency ?) |
There is no limit to a configuration that a user can provide, so I would expect that users can provide that as well. I kept the code consistent with this PR. If its best to filter based on what we inject then we should do that same for all 3. |
We don't support using either of those in a collector config, so there's no need. Healthcheckv2 is an upstream component. Technically, we probably should do it anyway, but I recall it was annoying to do so. |
|
@swiatekm That makes sense. I have updated this PR to keep it specifically about the healthcheckv2 extension. It now only removes based on the specific extension ID. |
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @blakerouse |
* Hide healthcheckv2 from agent status. * Add changelog entry. * Update entry. * Filter out by specific UUID. (cherry picked from commit 81d77f5) # Conflicts: # internal/pkg/otel/manager/manager.go
…11750) * [OTEL] Hide healthcheckv2 from agent status. (#11718) * Hide healthcheckv2 from agent status. * Add changelog entry. * Update entry. * Filter out by specific UUID. (cherry picked from commit 81d77f5) # Conflicts: # internal/pkg/otel/manager/manager.go * Fix merge conflict. --------- Co-authored-by: Blake Rouse <[email protected]>
* Hide healthcheckv2 from agent status. * Add changelog entry. * Update entry. * Filter out by specific UUID. (cherry picked from commit 81d77f5) # Conflicts: # internal/pkg/otel/manager/manager.go
…#11775) * [OTEL] Hide healthcheckv2 from agent status. (#11718) * Hide healthcheckv2 from agent status. * Add changelog entry. * Update entry. * Filter out by specific UUID. (cherry picked from commit 81d77f5) # Conflicts: # internal/pkg/otel/manager/manager.go * Fix conflict. --------- Co-authored-by: Blake Rouse <[email protected]>
What does this PR do?
Hides the
healthcheckv2extension from theelastic-agent statusoutput.Why is it important?
This extension is injected by the elastic-agent so it should not be included in the status as its not created by the user.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool[ ] I have added an integration test or an E2E test(covered by unit test)Disruptive User Impact
The
healthcheckv2will no longer be included in status output.How to test this PR locally
Run the elastic-agent with OTEL enabled, run
elastic-agent statusand observe that thehealthcheckv2extension is no longer in the status output.Related issues
healthcheckv2extensionshould be hidden inelastic-agent status output#11714