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

metricbeat: Update beat module with apm-server monitoring metrics fields #40127

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

carsonip
Copy link
Member

@carsonip carsonip commented Jul 5, 2024

Proposed commit message

  • Update metricbeat beat module mapping to contain latest apm-server monitoring metrics fields
  • Update schema to parse output fields from stats
  • Update tests

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

  • Start apm-server with monitoring
  • Start standalone metricbeat with beat module
  • Confirm that fields are mapped correctly in metricbeat-* data stream

Manual testing results described in elastic/apm-server#13475

Related issues

Use cases

Screenshots

Logs

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 5, 2024
@botelastic
Copy link

botelastic bot commented Jul 5, 2024

This pull request doesn't have a Team:<team> label.

@carsonip carsonip changed the title metricbeat: Update beat module with apm-server fields metricbeat: Update beat module with apm-server monitoring metrics fields Jul 5, 2024
Copy link
Contributor

mergify bot commented Jul 5, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @carsonip? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@carsonip carsonip added bug backport-v8.14.0 Automated backport with mergify backport-8.15 Automated backport to the 8.15 branch with mergify and removed backport-v8.14.0 Automated backport with mergify labels Jul 5, 2024
@@ -35,6 +35,7 @@ var (
"cgroup": c.Ifc("beat.cgroup"),
"system": c.Ifc("system"),
"apm_server": c.Ifc("apm-server"),
"output": c.Ifc("output"),
Copy link
Member Author

Choose a reason for hiding this comment

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

[to reviewer] this is required for beat.stats.output.elasticsearch.*

Copy link
Contributor

mergify bot commented Jul 9, 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 apm-server-metrics upstream/apm-server-metrics
git merge upstream/main
git push upstream apm-server-metrics

@@ -33,7 +33,7 @@ import (

func TestEventMapping(t *testing.T) {

files, err := filepath.Glob("./_meta/test/stats.*.json")
files, err := filepath.Glob("./_meta/test/*.stats.*.json")
Copy link
Member Author

Choose a reason for hiding this comment

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

[to reviewer] it wasn't testing apm-server.stats.712.json, not sure if it was intended.

Copy link
Contributor

Choose a reason for hiding this comment

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

no idea but we'll know if CI fails :)

@@ -175,6 +175,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Fix query logic for temp and non-temp tablespaces in Oracle module. {issue}38051[38051] {pull}39787[39787]
- Set GCP metrics config period to the default (60s) when the value is below the minimum allowed period. {issue}30434[30434] {pull}40020[40020]
- Fix missing metrics from CloudWatch when include_linked_accounts set to false. {issue}40071[40071] {pull}40135[40135]
- Update beat module with apm-server monitoring metrics fields {pull}40127[40127]
Copy link
Member Author

Choose a reason for hiding this comment

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

[to reviewer] double checking: if we are looking to backport this PR to 8.15, is this still the right place for the changelog?

Copy link
Contributor

Choose a reason for hiding this comment

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

@elastic/beats would you know about that ?

@carsonip carsonip marked this pull request as ready for review July 9, 2024 14:24
@carsonip carsonip requested a review from a team as a code owner July 9, 2024 14:24
@carsonip carsonip marked this pull request as draft July 9, 2024 15:10
@carsonip carsonip marked this pull request as ready for review July 9, 2024 16:42
Copy link
Contributor

@klacabane klacabane left a comment

Choose a reason for hiding this comment

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

LGTM

@carsonip carsonip merged commit d79d852 into elastic:main Jul 10, 2024
20 checks passed
mergify bot pushed a commit that referenced this pull request Jul 10, 2024
…lds (#40127)

* Update metricbeat beat module mapping to contain latest apm-server monitoring metrics fields
* Update schema to parse output fields from stats
* Update tests

(cherry picked from commit d79d852)
carsonip added a commit that referenced this pull request Jul 10, 2024
…lds (#40127) (#40167)

* Update metricbeat beat module mapping to contain latest apm-server monitoring metrics fields
* Update schema to parse output fields from stats
* Update tests

(cherry picked from commit d79d852)

Co-authored-by: Carson Ip <carsonip@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.15 Automated backport to the 8.15 branch with mergify bug needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants