add metrics logging to beat receivers#48541
Merged
leehinman merged 2 commits intoelastic:mainfrom Jan 28, 2026
Merged
Conversation
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
73baabf to
845e0b2
Compare
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
orestisfl
reviewed
Jan 27, 2026
mauri870
approved these changes
Jan 27, 2026
Member
mauri870
left a comment
There was a problem hiding this comment.
LGTM, nothing stands out aside from the already existing comments.
khushijain21
approved these changes
Jan 28, 2026
mergify bot
pushed a commit
that referenced
this pull request
Jan 28, 2026
* add metrics logging to beat receivers (cherry picked from commit 21b7dfc)
6 tasks
leehinman
added a commit
that referenced
this pull request
Jan 28, 2026
This was referenced Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Add
MakeReporterto beat receivers start up. This will produce the"Non-zero metrics in the last 30s" in the logs. Also added the
Stopfunction to the beat receiver shutdown
This is necessary so the metrics will end up in the elastic-agent
diagnostics output.
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
Author's Checklist
How to test this PR locally
Integration tests
In elastic-agent
jq -r 'select (.message == "Non-zero metrics in the last 30s") | .component.id' *.ndjson | sort -uin logs directoryYou should see that every component is producing it's own 30s metrics log entries
Related issues
Use cases
Screenshots
Logs