Skip to content

Commit

Permalink
add disk capacity fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian-ioan committed Sep 18, 2024
1 parent 4c5186f commit 4c457aa
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 8 deletions.
29 changes: 29 additions & 0 deletions packages/vsphere/data_stream/datastore/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@
# Reason to add as a dimension field: in case datastore name is duplicated across different type.
dimension: true
description: Filesystem type.
- name: disk.capacity.bytes
type: long
description: >
Configured size of the datastore.
format: bytes
- name: disk.capacity.usage.bytes
type: long
description: >
The amount of storage capacity currently being consumed by datastore.
format: bytes
- name: disk.provisioned.bytes
type: long
description: >
Amount of storage set aside for use by a datastore.
format: bytes
- name: capacity.total.bytes
type: long
metric_type: gauge
Expand Down Expand Up @@ -41,56 +59,67 @@
metric_type: gauge
description: >
Number of hosts associated with the datastore.
- name: host.names
type: keyword
description: >
List of all the host names associated with the datastore.
- name: iops
type: long
metric_type: gauge
description: >
Storage I/O Control aggregated Input/Output Operations Per Second.
- name: read.bytes
type: long
metric_type: gauge
unit: byte
description: >
Rate of reading data from the datastore.
format: bytes
- name: read.latency.total.ms
type: long
metric_type: gauge
unit: ms
description: >
Average amount of time for a read operation from the datastore in milliseconds.
- name: status
type: keyword
description: >
Status of the datastore.
- name: triggerd_alarms.*
type: object
object_type: keyword
description: >
List of all the triggerd alarms.
- name: vm.count
type: long
metric_type: gauge
description: >
Number of VMs associated with the datastore.
- name: vm.names
type: keyword
description: >
List of all the VM names associated with the datastore.
- name: write.bytes
type: long
metric_type: gauge
unit: byte
description: >
Rate of writing data to the datastore.
format: bytes
- name: write.latency.total.ms
metric_type: gauge
unit: ms
type: long
description: >
Average amount of time for a write operation from the datastore in milliseconds.
19 changes: 15 additions & 4 deletions packages/vsphere/data_stream/datastore/sample_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,27 @@
},
"vsphere": {
"datastore": {
"disk": {
"capacity": {
"usage": {
"bytes": 520505786368
},
"bytes": 1610344300544
},
"provisioned": {
"bytes": 520505786368
}
},
"capacity": {
"free": {
"bytes": 10952166604800
"bytes": 37120094208
},
"total": {
"bytes": 10995116277760
"bytes": 74686664704
},
"used": {
"bytes": 42949672960,
"pct": 0.004
"bytes": 37566570496,
"pct": 0.502988996026061
}
},
"fstype": "OTHER",
Expand Down
22 changes: 18 additions & 4 deletions packages/vsphere/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,27 @@ An example event for `datastore` looks as following:
},
"vsphere": {
"datastore": {
"disk": {
"capacity": {
"usage": {
"bytes": 520505786368
},
"bytes": 1610344300544
},
"provisioned": {
"bytes": 520505786368
}
},
"capacity": {
"free": {
"bytes": 10952166604800
"bytes": 37120094208
},
"total": {
"bytes": 10995116277760
"bytes": 74686664704
},
"used": {
"bytes": 42949672960,
"pct": 0.004
"bytes": 37566570496,
"pct": 0.502988996026061
}
},
"fstype": "OTHER",
Expand Down Expand Up @@ -430,6 +441,9 @@ Please refer to the following [document](https://www.elastic.co/guide/en/ecs/cur
| vsphere.datastore.capacity.total.bytes | Total bytes of the datastore. | long | byte | gauge |
| vsphere.datastore.capacity.used.bytes | Used bytes of the datastore. | long | byte | gauge |
| vsphere.datastore.capacity.used.pct | Percentage of datastore capacity used. | scaled_float | percent | gauge |
| vsphere.datastore.disk.capacity.bytes | Configured size of the datastore. | long | | |
| vsphere.datastore.disk.capacity.usage.bytes | The amount of storage capacity currently being consumed by datastore. | long | | |
| vsphere.datastore.disk.provisioned.bytes | Amount of storage set aside for use by a datastore. | long | | |
| vsphere.datastore.fstype | Filesystem type. | keyword | | |
| vsphere.datastore.host.count | Number of hosts associated with the datastore. | long | | gauge |
| vsphere.datastore.host.names | List of all the host names associated with the datastore. | keyword | | |
Expand Down

0 comments on commit 4c457aa

Please sign in to comment.