-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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][datastore] Add additional metrics #40441
[vSphere][datastore] Add additional metrics #40441
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/obs-dc (Team:Obs-DC) |
@@ -27,7 +27,8 @@ import ( | |||
) | |||
|
|||
func TestFetchEventContents(t *testing.T) { | |||
model := simulator.ESX() | |||
// Creating a new simulator model with VPX server to collect broad range of data. | |||
model := simulator.VPX() | |||
if err := model.Create(); err != nil { | |||
t.Fatal(err) | |||
} |
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.
} | |
} | |
defer model.Remove() |
nitpick
…j-elastic/beats into vsphere_datastore_metricset
This pull request is now in conflicts. Could you fix it? 🙏
|
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.
Changes look good, other than one comment that I have left.
Lets merge the conflicts and move ahead.
outputVmNames := make([]string, 0, len(ds.Vm)) | ||
for _, ob := range objects { | ||
if ob.Reference().Type == "VirtualMachine" { | ||
name := strings.ReplaceAll(ob.Name, ".", "_") |
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.
IMO, we should not change the names from "." to "_".
But as discussed we can take care of this as part of this issue as this could be a breaking change for existing users and we will have to log that.
…phere_datastore_metricset Conflicts: metricbeat/module/vsphere/fields.go
* add data collection * update changelog * update datacollection * update fields.yml * update test files * update field discriptions * address review comments * address review comments * address review commetns * update fields * update usint test * address review comments * update data_test file * update unit test * address review comments * update fields.asci * address review comments * update data_test file * update go.mod file * update NOTICE.txt * address review comment * address review comments * mage update * address review comments * Address review comments --------- Co-authored-by: Niraj Rathod <[email protected]> (cherry picked from commit 94ca509) # Conflicts: # metricbeat/module/vsphere/fields.go
…40782) * [vSphere][datastore] Add additional metrics (#40441) * add data collection * update changelog * update datacollection * update fields.yml * update test files * update field discriptions * address review comments * address review comments * address review commetns * update fields * update usint test * address review comments * update data_test file * update unit test * address review comments * update fields.asci * address review comments * update data_test file * update go.mod file * update NOTICE.txt * address review comment * address review comments * mage update * address review comments * Address review comments --------- Co-authored-by: Niraj Rathod <[email protected]> (cherry picked from commit 94ca509) # Conflicts: # metricbeat/module/vsphere/fields.go * Update fields.go * update fields.go --------- Co-authored-by: niraj-elastic <[email protected]> Co-authored-by: Ishleen Kaur <[email protected]> Co-authored-by: ishleenk17 <[email protected]>
Description
Added following new metrics for the datastore metricset in the vSphere metricbeat module. added new performance API to get more detailed info from the vSphere.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues