-
Notifications
You must be signed in to change notification settings - Fork 444
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][virtualmachine] Add support for additional metrics #10942
Changes from 1 commit
8e782c6
3e86570
260ef06
953b653
e1af4af
56c61bd
28978e0
6c72eb4
9d3b1a0
3f909da
a782210
8e01de8
d6b9916
eca6813
649c864
d2f467e
6b27dc4
f546aa8
9c318ec
75b3a08
4aa0c34
ba0636d
a009454
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,58 +4,89 @@ | |
fields: | ||
- name: host.id | ||
type: keyword | ||
description: Id of the host hosting the virtualmachine | ||
description: > | ||
Host id. | ||
- name: host.hostname | ||
type: keyword | ||
description: Name of the host hosting the virtualmachine | ||
description: > | ||
Hostname of the host. | ||
- name: name | ||
type: keyword | ||
# Reason to add as a dimension field: Each VM has Unique name assigned | ||
dimension: true | ||
description: Virtual Machine name | ||
# Reason to add as a dimension field: Each VM has Unique name assigned. | ||
description: > | ||
Virtual Machine name. | ||
- name: os | ||
type: keyword | ||
description: Virtual Machine Operating System name | ||
description: > | ||
Virtual Machine Operating System name. | ||
- name: cpu.used.mhz | ||
type: long | ||
metric_type: gauge | ||
description: Used CPU of virtualmachine in Mhz | ||
description: > | ||
Used CPU in Mhz. | ||
- name: cpu.total.mhz | ||
type: long | ||
metric_type: counter | ||
description: Total CPU of virtualmachine in Mhz | ||
description: > | ||
Total CPU in Mhz. | ||
- name: cpu.free.mhz | ||
type: long | ||
metric_type: gauge | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason to remove these metric_types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, reverting, tested first with beats code directly. |
||
description: Available CPU of virtualmachine in Mhz | ||
description: > | ||
Available CPU in Mhz. | ||
- name: memory.used.guest.bytes | ||
type: long | ||
metric_type: gauge | ||
unit: byte | ||
description: Used Memory of Guest in bytes | ||
description: > | ||
Used Memory of Guest in bytes. | ||
format: bytes | ||
- name: memory.used.host.bytes | ||
type: long | ||
metric_type: gauge | ||
unit: byte | ||
description: Used Memory of Host in bytes | ||
description: > | ||
Used Memory of Host in bytes. | ||
format: bytes | ||
- name: memory.total.guest.bytes | ||
type: long | ||
metric_type: gauge | ||
unit: byte | ||
description: Total Memory of Guest in bytes | ||
description: > | ||
Total Memory of Guest in bytes. | ||
format: bytes | ||
- name: memory.free.guest.bytes | ||
type: long | ||
metric_type: gauge | ||
unit: byte | ||
description: Free Memory of Guest in bytes | ||
description: > | ||
Free Memory of Guest in bytes. | ||
format: bytes | ||
- name: custom_fields | ||
type: object | ||
object_type: keyword | ||
description: Custom fields | ||
description: > | ||
Custom fields. | ||
- name: network_names | ||
type: keyword | ||
description: Network names | ||
description: > | ||
Network names. | ||
- name: datastore | ||
type: group | ||
fields: | ||
- name: names | ||
type: keyword | ||
description: > | ||
Names of the datastore associated to this virtualmachine. | ||
- name: count | ||
type: long | ||
description: > | ||
Number of datastores associated to this virtualmachine. | ||
- name: network | ||
type: group | ||
fields: | ||
- name: names | ||
type: keyword | ||
description: > | ||
Names of the networks associated to this virtualmachine. | ||
- name: count | ||
type: long | ||
description: > | ||
Number of networks associated to this virtualmachine. | ||
- name: status | ||
type: keyword | ||
description: > | ||
Overall health and status of a virtual machine. | ||
- name: uptime | ||
type: long | ||
description: > | ||
The uptime of the VM in seconds. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,37 +59,58 @@ | |
}, | ||
"vsphere": { | ||
"virtualmachine": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these events autogenerated by system tests ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tested with beats code, regenerated it now. |
||
"cpu": { | ||
"used": { | ||
"mhz": 0 | ||
} | ||
}, | ||
"host": { | ||
"hostname": "DC0_H0", | ||
"id": "host-21" | ||
"network.names": [ | ||
"PROD_VCF" | ||
], | ||
"os": "Microsoft Windows 10 (64-bit)", | ||
"datastore": { | ||
"count": 1 | ||
}, | ||
"memory": { | ||
"free": { | ||
"used": { | ||
"guest": { | ||
"bytes": 33554432 | ||
"bytes": 0 | ||
}, | ||
"host": { | ||
"bytes": 0 | ||
} | ||
}, | ||
"total": { | ||
"guest": { | ||
"bytes": 33554432 | ||
"bytes": 4294967296 | ||
} | ||
}, | ||
"used": { | ||
"free": { | ||
"guest": { | ||
"bytes": 0 | ||
}, | ||
"host": { | ||
"bytes": 0 | ||
"bytes": 4294967296 | ||
} | ||
} | ||
}, | ||
"name": "DC0_H0_VM0", | ||
"os": "otherGuest" | ||
"network": { | ||
"count": 1 | ||
}, | ||
"host.hostname": "phx-w1c1", | ||
"name": "phx-14", | ||
"cpu": { | ||
"free": { | ||
"mhz": 0 | ||
}, | ||
"used": { | ||
"mhz": 0 | ||
}, | ||
"total": { | ||
"mhz": 0 | ||
} | ||
}, | ||
"uptime": 0, | ||
"status": "green", | ||
"network_names": [ | ||
"PROD_VCF" | ||
], | ||
"datastore.names": [ | ||
"VxRailtec-Virtual-SAN-Datastore-247df-bc1d-5aad2" | ||
], | ||
"host.id": "host-20" | ||
} | ||
} | ||
} |
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.
@lucian-ioan : I suppose you are using the fields.yml directly from the beats code.
That would not be correct as we don't consider tsdb there.
Also, for any new fields please keep TSDB into consideration.