-
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_cluster] Add support for new metrics in datastore_cluster metricset #40694
[vSphere][datastore_cluster] Add support for new metrics in datastore_cluster metricset #40694
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
|
This pull request is now in conflicts. Could you fix it? 🙏
|
…collate-and-address-breaking-changes-for-metricsets
func (m *DatastoreClusterMetricSet) Fetch(ctx context.Context, reporter mb.ReporterV2) error { | ||
ctx, cancel := context.WithCancel(ctx) | ||
defer cancel() |
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.
Since you are already passing a context, is it necessary to create a new one here?
Is it valuable to control its cancellation here?
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.
We have planned to remove this from all the metricset but not in current PR.
We will be having common PR for doing all the changes related to all the metricsets.
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.
Small suggestions, otherwise looks good.
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.
Address a nit.
Rest looks good!
…_cluster metricset (#40694) * initial commit * add childEntity * add changelog entry * resolve review comments (cherry picked from commit 83a880f) # Conflicts: # filebeat/input/journald/pkg/journalread/mode_test.go # metricbeat/docs/fields.asciidoc # metricbeat/module/vsphere/datastorecluster/_meta/data.json # metricbeat/module/vsphere/datastorecluster/_meta/fields.yml # metricbeat/module/vsphere/datastorecluster/data.go # metricbeat/module/vsphere/datastorecluster/datastorecluster.go # metricbeat/module/vsphere/fields.go
…_cluster metricset (#40694) * initial commit * add childEntity * add changelog entry * resolve review comments
…_cluster metricset (#40694) (#40831) * initial commit * add childEntity * add changelog entry * resolve review comments Co-authored-by: Kush Rana <[email protected]>
Description
Here are the following metrics to be added for the datastore cluster data stream in the vSphere metricbeat module. Here we added a new performance API to get more detailed information from vSphere.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues