Skip to content

Commit

Permalink
[Metricbeat][vSphere] New metrics support and minor changes to existi…
Browse files Browse the repository at this point in the history
…ng metricsets (#40766)

* initial commit

* update field mappings

* update virtual machine data.json

* format data.json

* resolve review comments

* add changelog entry

(cherry picked from commit 3f44bd1)

# Conflicts:
#	metricbeat/docs/fields.asciidoc
#	metricbeat/module/vsphere/datastore/_meta/data.json
#	metricbeat/module/vsphere/datastore/_meta/fields.yml
#	metricbeat/module/vsphere/datastore/data.go
#	metricbeat/module/vsphere/datastore/data_test.go
#	metricbeat/module/vsphere/datastore/datastore.go
#	metricbeat/module/vsphere/datastore/datastore_test.go
#	metricbeat/module/vsphere/fields.go
#	metricbeat/module/vsphere/host/_meta/data.json
#	metricbeat/module/vsphere/host/host.go
#	metricbeat/module/vsphere/virtualmachine/_meta/data.json
#	metricbeat/module/vsphere/virtualmachine/_meta/fields.yml
#	metricbeat/module/vsphere/virtualmachine/data_test.go
#	metricbeat/module/vsphere/virtualmachine/virtualmachine.go
  • Loading branch information
kush-elastic authored and mergify[bot] committed Sep 13, 2024
1 parent 2922f8f commit 82c1c3b
Show file tree
Hide file tree
Showing 15 changed files with 1,341 additions and 4 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,20 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Add SSL support to mysql module {pull}37997[37997]
- Add SSL support for aerospike module {pull}38126[38126]

- Add `use_kubeadm` config option in kubernetes module in order to toggle kubeadm-config api requests {pull}40086[40086]
- Log the total time taken for GCP `ListTimeSeries` and `AggregatedList` requests {pull}40661[40661]
- Add new metrics for the vSphere Host metricset. {pull}40429[40429]
- Add new metrics for the vSphere Datastore metricset. {pull}40441[40441]
- Add new metricset cluster for the vSphere module. {pull}40536[40536]
- Add new metricset network for the vSphere module. {pull}40559[40559]
- Add new metricset resourcepool for the vSphere module. {pull}40456[40456]
- Add new metricset datastorecluster for vSphere module. {pull}40634[40634] {pull}40694[40694]
- Add new metrics for the vSphere Virtualmachine metricset. {pull}40485[40485]
- Add support for snapshot in vSphere virtualmachine metricset {pull}40683[40683]
- Update fields to use mapstr in vSphere virtualmachine metricset {pull}40707[40707]
- Add support for period based intervalID in vSphere host and datastore metricsets {pull}40678[40678]
- Add new metrics fot datastore and minor changes to overall vSphere metrics {pull}40766[40766]
- Add `metrics_count` to Prometheus module if `metrics_count: true` is set. {pull}40411[40411]

*Metricbeat*

Expand Down
278 changes: 278 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -66929,6 +66929,200 @@ format: percent

--

<<<<<<< HEAD
=======
*`vsphere.datastore.disk.capacity.bytes`*::
+
--
Configured size of the datastore.


type: long

format: bytes

--

*`vsphere.datastore.disk.capacity.usage.bytes`*::
+
--
The amount of storage capacity currently being consumed by datastore.


type: long

format: bytes

--

*`vsphere.datastore.disk.provisioned.bytes`*::
+
--
Amount of storage set aside for use by a datastore.


type: long

format: bytes

--

*`vsphere.datastore.fstype`*::
+
--
Filesystem type.


type: keyword

--

*`vsphere.datastore.host.count`*::
+
--
Number of hosts.


type: long

--

*`vsphere.datastore.host.names`*::
+
--
List of all the host names.


type: keyword

--

*`vsphere.datastore.name`*::
+
--
Datastore name.


type: keyword

--

*`vsphere.datastore.read.bytes`*::
+
--
Rate of reading data from the datastore.


type: long

format: bytes

--

*`vsphere.datastore.status`*::
+
--
Status of the datastore.


type: keyword

--

*`vsphere.datastore.vm.count`*::
+
--
Number of VMs.


type: long

--

*`vsphere.datastore.vm.names`*::
+
--
List of all the VM names.


type: keyword

--

*`vsphere.datastore.write.bytes`*::
+
--
Rate of writing data to the datastore.


type: long

format: bytes

--

[float]
=== datastorecluster

Datastore Cluster



*`vsphere.datastorecluster.name`*::
+
--
The Datastore Cluster name.


type: keyword

--

*`vsphere.datastorecluster.capacity.bytes`*::
+
--
Total capacity of this storage pod, in bytes.


type: long

format: bytes

--

*`vsphere.datastorecluster.free_space.bytes`*::
+
--
Total free space on this storage pod, in bytes.


type: long

format: bytes

--

*`vsphere.datastorecluster.datastore.names`*::
+
--
List of all the Datastore names associated with the Datastore Cluster.


type: keyword

--

*`vsphere.datastorecluster.datastore.count`*::
+
--
Number of datastores in the Datastore Cluster.


type: long

--

>>>>>>> 3f44bd1f9b ([Metricbeat][vSphere] New metrics support and minor changes to existing metricsets (#40766))
[float]
=== host

Expand Down Expand Up @@ -67167,6 +67361,90 @@ type: keyword

--

<<<<<<< HEAD
=======

*`vsphere.virtualmachine.datastore.names`*::
+
--
Names of the datastore associated to this virtualmachine.


type: keyword

--

*`vsphere.virtualmachine.datastore.count`*::
+
--
Number of datastores associated to this virtualmachine.


type: long

--


*`vsphere.virtualmachine.network.names`*::
+
--
Names of the networks associated to this virtualmachine.


type: keyword

--

*`vsphere.virtualmachine.network.count`*::
+
--
Number of networks associated to this virtualmachine.


type: long

--

*`vsphere.virtualmachine.status`*::
+
--
Overall health and status of a virtual machine.


type: keyword

--

*`vsphere.virtualmachine.uptime`*::
+
--
The uptime of the VM in seconds.


type: long

--


*`vsphere.virtualmachine.snapshot.info.*`*::
+
--
Details of the snapshots of this virtualmachine.

type: object

--

*`vsphere.virtualmachine.snapshot.count`*::
+
--
The number of snapshots of this virtualmachine.

type: long

--

>>>>>>> 3f44bd1f9b ([Metricbeat][vSphere] New metrics support and minor changes to existing metricsets (#40766))
[[exported-fields-windows]]
== Windows fields

Expand Down
33 changes: 33 additions & 0 deletions metricbeat/module/vsphere/datastore/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,39 @@
},
"vsphere": {
"datastore": {
<<<<<<< HEAD
=======
"host": {
"count": 1,
"names": [
"DC3_H0"
]
},
"status": "green",
"vm": {
"count": 6,
"names": [
"DC3_H0_VM0"
]
},
"read": {
"bytes": 0
},
"write": {
"bytes": 337000
},
"disk": {
"capacity": {
"usage": {
"bytes": 520505786368
},
"bytes": 1610344300544
},
"provisioned": {
"bytes": 520505786368
}
},
>>>>>>> 3f44bd1f9b ([Metricbeat][vSphere] New metrics support and minor changes to existing metricsets (#40766))
"capacity": {
"free": {
"bytes": 37120094208
Expand Down
Loading

0 comments on commit 82c1c3b

Please sign in to comment.