-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vSphere] Add new Cluster metricset (#40536)
* add cluster metricset * update changelog * fix lint errors * minor changes * add unit test * update fields.yml * mage update * minor changes * minor changes * mage update * Address review comment * Address review comments * address review comments * update data.json * update fields.yml * update data.json * lint changes * mage update * mage update for x-pack * Mage update after conflicts * update fields.go * Address review comments --------- Co-authored-by: Niraj Rathod <niraj.rathod@crestdatasys.com> Co-authored-by: subham sarkar <subham.sarkar@elastic.co>
- Loading branch information
1 parent
441c166
commit 1058457
Showing
26 changed files
with
755 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
:edit_url: https://github.com/elastic/beats/edit/main/metricbeat/module/vsphere/cluster/_meta/docs.asciidoc | ||
|
||
|
||
[[metricbeat-metricset-vsphere-cluster]] | ||
=== vSphere cluster metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/vsphere/cluster/_meta/docs.asciidoc[] | ||
|
||
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. | ||
|
||
:edit_url: | ||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-vsphere,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/vsphere/cluster/_meta/data.json[] | ||
---- | ||
:edit_url!: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- module: vsphere | ||
#metricsets: | ||
# - cluster | ||
# - datastore | ||
# - host | ||
# - virtualmachine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"event": { | ||
"dataset": "vsphere.cluster", | ||
"duration": 115000, | ||
"module": "vsphere" | ||
}, | ||
"metricset": { | ||
"name": "cluster", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:33365", | ||
"type": "vsphere" | ||
}, | ||
"vsphere": { | ||
"cluster": { | ||
"name": "Cluster_1", | ||
"das_config": { | ||
"enabled": false, | ||
"admission": { | ||
"control": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"host": { | ||
"count": 1, | ||
"names": [ | ||
"Host_1" | ||
] | ||
}, | ||
"datastore": { | ||
"count": 1, | ||
"names": [ | ||
"Datastore_1" | ||
] | ||
}, | ||
"network": { | ||
"count": 1, | ||
"names": [ | ||
"Network_1" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the `cluster` metricset of the vSphere module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
- name: cluster | ||
type: group | ||
release: beta | ||
description: > | ||
Cluster information. | ||
fields: | ||
- name: datastore | ||
type: group | ||
fields: | ||
- name: names | ||
type: keyword | ||
description: > | ||
List of all the Datastore names associated with the cluster. | ||
- name: count | ||
type: long | ||
description: > | ||
Number of Datastores associated with the cluster. | ||
- name: das_config | ||
type: group | ||
fields: | ||
- name: admission.control.enabled | ||
type: boolean | ||
description: > | ||
Indicates whether strict admission control is enabled. | ||
- name: enabled | ||
type: boolean | ||
description: > | ||
Indicates whether vSphere HA feature is enabled. | ||
- name: host | ||
type: group | ||
fields: | ||
- name: count | ||
type: long | ||
description: > | ||
Number of Hosts associated with the cluster. | ||
- name: names | ||
type: keyword | ||
description: > | ||
List of all the Host names associated with the cluster. | ||
- name: name | ||
type: keyword | ||
description: > | ||
Cluster name. | ||
- name: network | ||
type: group | ||
fields: | ||
- name: count | ||
type: long | ||
description: > | ||
Number of Networks associated with the cluster. | ||
- name: names | ||
type: keyword | ||
description: > | ||
List of all the Network names associated with the cluster. |
Oops, something went wrong.