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

[8.15](backport #40441) [vSphere][datastore] Add additional metrics #40782

Merged
merged 5 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
*Metricbeat*

- Setting period for counter cache for Prometheus remote_write at least to 60sec {pull}38553[38553]
- Add new metrics for the vSphere Datastore metricset. {pull}40441[40441]
- Update metrics for the vSphere Host metricset. {pull}40429[40429]

*Osquerybeat*
Expand Down
136 changes: 120 additions & 16 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -66861,54 +66861,108 @@ datastore



*`vsphere.datastore.name`*::
*`vsphere.datastore.capacity.free.bytes`*::
+
--
Datastore name
Free bytes of the datastore.


type: keyword
type: long

format: bytes

--

*`vsphere.datastore.capacity.total.bytes`*::
+
--
Total bytes of the datastore.


type: long

format: bytes

--

*`vsphere.datastore.capacity.used.bytes`*::
+
--
Used bytes of the datastore.


type: long

format: bytes

--

*`vsphere.datastore.capacity.used.pct`*::
+
--
Percentage of datastore capacity used.


type: scaled_float

format: percent

--

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


type: keyword

--

*`vsphere.datastore.capacity.total.bytes`*::
*`vsphere.datastore.host.count`*::
+
--
Total bytes of the datastore
Number of hosts.


type: long

format: bytes
--

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

*`vsphere.datastore.capacity.free.bytes`*::

type: keyword

--

*`vsphere.datastore.iops`*::
+
--
Free bytes of the datastore
Storage I/O Control aggregated Input/Output Operations Per Second.


type: long

format: bytes
--

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

*`vsphere.datastore.capacity.used.bytes`*::

type: keyword

--

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


type: long
Expand All @@ -66917,15 +66971,65 @@ format: bytes

--

*`vsphere.datastore.capacity.used.pct`*::
*`vsphere.datastore.read.latency.total.ms`*::
+
--
Used percent of the datastore
Average amount of time for a read operation from the datastore in milliseconds.


type: scaled_float
type: long

format: percent
--

*`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

--

*`vsphere.datastore.write.latency.total.ms`*::
+
--
Average amount of time for a write operation from the datastore in milliseconds.


type: long

--

Expand Down
90 changes: 60 additions & 30 deletions metricbeat/module/vsphere/datastore/_meta/data.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,64 @@
{
"@timestamp": "2017-10-12T08:05:34.853Z",
"event": {
"dataset": "vsphere.datastore",
"duration": 115000,
"module": "vsphere"
},
"metricset": {
"name": "datastore",
"period": 10000
},
"service": {
"address": "127.0.0.1:33365",
"type": "vsphere"
},
"vsphere": {
"datastore": {
"capacity": {
"free": {
"bytes": 37120094208
"@timestamp": "2017-10-12T08:05:34.853Z",
"event": {
"dataset": "vsphere.datastore",
"duration": 115000,
"module": "vsphere"
},
"metricset": {
"name": "datastore",
"period": 10000
},
"service": {
"address": "127.0.0.1:33365",
"type": "vsphere"
},
"vsphere": {
"datastore": {
"iops": 0,
"host": {
"count": 1,
"names": [
"DC3_H0"
]
},
"status": "green",
"vm": {
"count": 6,
"names": [
"DC3_H0_VM0"
]
},
"capacity": {
"free": {
"bytes": 37120094208
},
"total": {
"bytes": 74686664704
},
"used": {
"bytes": 37566570496,
"pct": 0.502988996026061
},
"read": {
"bytes": 0,
"latency": {
"total": {
"ms": 0
}
}
},
"total": {
"bytes": 74686664704
},
"used": {
"bytes": 37566570496,
"pct": 0.502988996026061
"write": {
"bytes": 337000,
"latency": {
"total": {
"ms": 0
}
}
}
},
"fstype": "local",
"name": "LocalDS_0"
}
}
},
"fstype": "local",
"name": "LocalDS_0"
}
}
}
70 changes: 56 additions & 14 deletions metricbeat/module/vsphere/datastore/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,74 @@
datastore
release: ga
fields:
- name: name
type: keyword
description: >
Datastore name
- name: fstype
type: keyword
description: >
Filesystem type
- name: capacity.total.bytes
- name: capacity.free.bytes
type: long
description: >
Total bytes of the datastore
Free bytes of the datastore.
format: bytes
- name: capacity.free.bytes
- name: capacity.total.bytes
type: long
description: >
Free bytes of the datastore
Total bytes of the datastore.
format: bytes
- name: capacity.used.bytes
type: long
description: >
Used bytes of the datastore
Used bytes of the datastore.
format: bytes
- name: capacity.used.pct
type: scaled_float
description: >
Used percent of the datastore
Percentage of datastore capacity used.
format: percent
- name: fstype
type: keyword
description: >
Filesystem type.
- name: host.count
type: long
description: >
Number of hosts.
- name: host.names
type: keyword
description: >
List of all the host names.
- name: iops
type: long
description: >
Storage I/O Control aggregated Input/Output Operations Per Second.
- name: name
type: keyword
description: >
Datastore name.
- name: read.bytes
type: long
description: >
Rate of reading data from the datastore.
format: bytes
- name: read.latency.total.ms
type: long
description: >
Average amount of time for a read operation from the datastore in milliseconds.
- name: status
type: keyword
description: >
Status of the datastore.
- name: vm.count
type: long
description: >
Number of VMs.
- name: vm.names
type: keyword
description: >
List of all the VM names.
- name: write.bytes
type: long
description: >
Rate of writing data to the datastore.
format: bytes
- name: write.latency.total.ms
type: long
description: >
Average amount of time for a write operation from the datastore in milliseconds.

Loading
Loading