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

[vSphere][resourcepool] Add support for new metrics in resourcepool metricset #40456

Conversation

kush-elastic
Copy link
Collaborator

@kush-elastic kush-elastic commented Aug 8, 2024

  • Enhancement

Description

Added following new metrics for the ResourcePool datastream in the vSphere metricbeat module. added new performance API to get more detailled info from the vSphere.

Metrics Type Metrics API Field Mappings
Resource pools CPU/memory/status OverallCpuUsage Quickstats cpu.usage.mhz
  OverallCpuDemand Quickstats cpu.demand.mhz
  GuestMemoryUsage Quickstats memory.usage.guest.bytes
  HostMemoryUsage Quickstats memory.usage.host.bytes
  DistributedCpuEntitlement Quickstats cpu.entitlement.mhz
  DistributedMemoryEntitlement Quickstats memory.entitlement.bytes
  StaticCpuEntitlement Quickstats cpu.entitlement.static.mhz
  StaticMemoryEntitlement Quickstats memory.entitlement.static.mhz
  PrivateMemory Quickstats memory.private.bytes
  SharedMemory Quickstats memory.shared.bytes
  SwappedMemory Quickstats memory.swapped.bytes
  BalloonedMemory Quickstats memory.ballooned.bytes
  OverheadMemory Quickstats memory.overhead.bytes
  ConsumedOverheadMemory Quickstats memory.overhead.consumed.bytes
  CompressedMemory Quickstats memory.compressed.bytes
  reourcepool.status Summary status
  resourcepool.Vm Summary vm.names
      vm.count

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.

Related issues

- Add new Metricset
- add/update docs
- add unit tests
- local testing
@kush-elastic kush-elastic requested review from a team as code owners August 8, 2024 06:01
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 8, 2024
Copy link
Contributor

mergify bot commented Aug 8, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @kush-elastic? 🙏.
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

@kush-elastic kush-elastic added enhancement module Metricbeat Metricbeat Module:beat The beat Metricbeat module Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team labels Aug 8, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 8, 2024
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Aug 8, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@lalit-satapathy lalit-satapathy added Team:Integrations Label for the Integrations team and removed Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team labels Aug 19, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

Copy link
Contributor

mergify bot commented Aug 28, 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 21-vsphere-implement-the-new-resourcepool-metricset upstream/21-vsphere-implement-the-new-resourcepool-metricset
git merge upstream/main
git push upstream 21-vsphere-implement-the-new-resourcepool-metricset

kush-elastic and others added 5 commits August 29, 2024 11:12
Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
@kush-elastic
Copy link
Collaborator Author

/test

Copy link
Contributor

@devamanv devamanv left a comment

Choose a reason for hiding this comment

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

Shared last set of review comments, rest looks good to me!

metricbeat/module/vsphere/resourcepool/data_test.go Outdated Show resolved Hide resolved
@kush-elastic
Copy link
Collaborator Author

/test

Copy link
Contributor

@ishleenk17 ishleenk17 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@lucian-ioan lucian-ioan left a comment

Choose a reason for hiding this comment

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

LGTM

@ishleenk17
Copy link
Contributor

/test

@ishleenk17 ishleenk17 merged commit 1f77e6e into elastic:main Aug 29, 2024
29 checks passed
@ishleenk17 ishleenk17 added the backport-8.15 Automated backport to the 8.15 branch with mergify label Sep 12, 2024
mergify bot pushed a commit that referenced this pull request Sep 12, 2024
…etricset (#40456)

* [vSphere][ResourcePool]:
- Add new Metricset
- add/update docs
- add unit tests
- local testing

* add changelog entry

* golangci-lint fix

* add vm names per resourcePool

* mage update

* update changelog entry

* make update

* resolve review comment

* make update

* update changelog entry

* resolved review comments

* resolve review comments

* field updates

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* update changelog entry

* minor changes

---------

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
(cherry picked from commit 1f77e6e)

# Conflicts:
#	metricbeat/docs/modules/vsphere.asciidoc
#	metricbeat/docs/modules_list.asciidoc
#	metricbeat/include/list_common.go
#	metricbeat/metricbeat.reference.yml
#	metricbeat/module/vsphere/_meta/README.md
#	metricbeat/module/vsphere/_meta/config.reference.yml
#	metricbeat/module/vsphere/_meta/config.yml
#	metricbeat/module/vsphere/_meta/docs.asciidoc
#	metricbeat/module/vsphere/fields.go
#	metricbeat/modules.d/vsphere.yml.disabled
#	x-pack/metricbeat/metricbeat.reference.yml
ishleenk17 added a commit that referenced this pull request Sep 13, 2024
…etricset (#40456)

* [vSphere][ResourcePool]:
- Add new Metricset
- add/update docs
- add unit tests
- local testing

* add changelog entry

* golangci-lint fix

* add vm names per resourcePool

* mage update

* update changelog entry

* make update

* resolve review comment

* make update

* update changelog entry

* resolved review comments

* resolve review comments

* field updates

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>

* update changelog entry

* minor changes

---------

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
ishleenk17 added a commit that referenced this pull request Sep 14, 2024
…etricset (#40456) (#40825)

* [vSphere][ResourcePool]:
- Add new Metricset
- add/update docs
- add unit tests
- local testing

* add changelog entry

* golangci-lint fix

* add vm names per resourcePool

* mage update

* update changelog entry

* make update

* resolve review comment

* make update

* update changelog entry

* resolved review comments

* resolve review comments

* field updates

* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml



* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml



* Update metricbeat/module/vsphere/resourcepool/_meta/fields.yml



* update changelog entry

* minor changes

---------

Co-authored-by: Kush Rana <89848966+kush-elastic@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 enhancement Metricbeat Metricbeat Module:beat The beat Metricbeat module module Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.