Skip to content

Add user data to monitoring setup#80

Merged
fearful-symmetry merged 1 commit intoelastic:mainfrom
fearful-symmetry:monitoring-migrate-userdata
Mar 28, 2023
Merged

Add user data to monitoring setup#80
fearful-symmetry merged 1 commit intoelastic:mainfrom
fearful-symmetry:monitoring-migrate-userdata

Conversation

@fearful-symmetry
Copy link
Copy Markdown
Contributor

What does this PR do?

This is a simple PR that migrates the code that adds user data to the monitoring registry from beats to here. The original code is in libbeat/cmd/instance/beat.go, and needs to be used in the shipper in order to bring the shipper up to feature parity with the beats in terms of monitoring. Just copy-and-pasting the user metrics is a bit ugly, so I figured I'd be better off migrating the metrics.

Why is it important?

We want to reduce code duplication across beats.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

@fearful-symmetry fearful-symmetry added the Team:Elastic-Agent Label for the Agent team label Mar 27, 2023
@fearful-symmetry fearful-symmetry self-assigned this Mar 27, 2023
@fearful-symmetry fearful-symmetry requested a review from a team as a code owner March 27, 2023 18:21
@fearful-symmetry fearful-symmetry requested review from belimawr and leehinman and removed request for a team March 27, 2023 18:21
@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-03-27T18:21:22.998+0000

  • Duration: 10 min 47 sec

Test stats 🧪

Test Results
Failed 0
Passed 188
Skipped 7
Total 195

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

Copy link
Copy Markdown
Member

@cmacknz cmacknz left a comment

Choose a reason for hiding this comment

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

Make sure we remove the duplicated code from Beats if we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Elastic-Agent Label for the Agent team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants