-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vSphere][virtualmachine] Add support for additional metrics (#10942)
- Loading branch information
1 parent
ccfbcfc
commit 69dc708
Showing
8 changed files
with
494 additions
and
74 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
143 changes: 143 additions & 0 deletions
143
packages/vsphere/data_stream/virtualmachine/_dev/test/pipeline/test-virtualmachine.json
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,143 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"@timestamp": "2024-09-02T09:44:14.128Z", | ||
"agent": { | ||
"ephemeral_id": "2d60906e-b972-4981-a356-c57ccb79108b", | ||
"id": "8ea73fb3-a0a0-4270-aad6-e88edb8b385a", | ||
"name": "elastic-agent-55444", | ||
"type": "metricbeat", | ||
"version": "8.16.0" | ||
}, | ||
"data_stream": { | ||
"dataset": "vsphere.virtualmachine", | ||
"namespace": "64133", | ||
"type": "metrics" | ||
}, | ||
"ecs": { | ||
"version": "8.11.0" | ||
}, | ||
"elastic_agent": { | ||
"id": "8ea73fb3-a0a0-4270-aad6-e88edb8b385a", | ||
"snapshot": true, | ||
"version": "8.16.0" | ||
}, | ||
"event": { | ||
"agent_id_status": "verified", | ||
"dataset": "vsphere.virtualmachine", | ||
"duration": 52726937, | ||
"ingested": "2024-09-02T09:44:17Z", | ||
"module": "vsphere" | ||
}, | ||
"host": { | ||
"architecture": "x86_64", | ||
"containerized": true, | ||
"hostname": "elastic-agent-55444", | ||
"id": "e744630f9d4f43dc818e497d221bd0b2", | ||
"ip": [ | ||
"172.18.0.4", | ||
"172.20.0.2" | ||
], | ||
"mac": [ | ||
"02-42-AC-12-00-04", | ||
"02-42-AC-14-00-02" | ||
], | ||
"name": "elastic-agent-55444", | ||
"os": { | ||
"codename": "focal", | ||
"family": "debian", | ||
"kernel": "5.15.153.1-microsoft-standard-WSL2", | ||
"name": "Ubuntu", | ||
"platform": "ubuntu", | ||
"type": "linux", | ||
"version": "20.04.6 LTS (Focal Fossa)" | ||
} | ||
}, | ||
"metricset": { | ||
"name": "virtualmachine", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "https://svc-vsphere-metrics:8989/sdk", | ||
"type": "vsphere" | ||
}, | ||
"vsphere": { | ||
"virtualmachine": { | ||
"name": "xt0nmfpv9", | ||
"uptime": 5348978, | ||
"status": "green", | ||
"host": { | ||
"id": "host-32", | ||
"hostname": "phx-w1c1-esxi04.com" | ||
}, | ||
"cpu": { | ||
"free": { | ||
"mhz": 0 | ||
}, | ||
"used": { | ||
"mhz": 161 | ||
}, | ||
"total": { | ||
"mhz": 0 | ||
} | ||
}, | ||
"network": { | ||
"names": [ | ||
"PROD_VCF_VMS" | ||
], | ||
"count": 1 | ||
}, | ||
"memory": { | ||
"used": { | ||
"guest": { | ||
"bytes": 686817280 | ||
}, | ||
"host": { | ||
"bytes": 29027729408 | ||
} | ||
}, | ||
"total": { | ||
"guest": { | ||
"bytes": 68719476736 | ||
} | ||
}, | ||
"free": { | ||
"guest": { | ||
"bytes": 68032659456 | ||
} | ||
} | ||
}, | ||
"network_names": [ | ||
"PROD_VCF_VMS" | ||
], | ||
"datastore": { | ||
"count": 1, | ||
"names": [ | ||
"VxRailtoup-Virtual-Datastore-bc1d-5aa310fb" | ||
] | ||
}, | ||
"os": "CentOS 4/5/6/7 (64-bit)", | ||
"snapshot": { | ||
"info": [ | ||
{ | ||
"id": 1, | ||
"name": "VM Snapshot 7%2f3%2f2024, 4:01:21 PM", | ||
"description": "Created to demo", | ||
"createtime": "2024-07-03T20:01:34.329Z", | ||
"state": "poweredOn" | ||
}, | ||
{ | ||
"createtime": "2024-07-05T23:35:40.859Z", | ||
"state": "poweredOn", | ||
"id": 2, | ||
"name": "VM Snapshot 7%2f5%2f2024, 7:35:37 PM", | ||
"description": "backup" | ||
} | ||
], | ||
"count": 2 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
143 changes: 143 additions & 0 deletions
143
...here/data_stream/virtualmachine/_dev/test/pipeline/test-virtualmachine.json-expected.json
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,143 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"@timestamp": "2024-09-02T09:44:14.128Z", | ||
"agent": { | ||
"ephemeral_id": "2d60906e-b972-4981-a356-c57ccb79108b", | ||
"id": "8ea73fb3-a0a0-4270-aad6-e88edb8b385a", | ||
"name": "elastic-agent-55444", | ||
"type": "metricbeat", | ||
"version": "8.16.0" | ||
}, | ||
"data_stream": { | ||
"dataset": "vsphere.virtualmachine", | ||
"namespace": "64133", | ||
"type": "metrics" | ||
}, | ||
"ecs": { | ||
"version": "8.11.0" | ||
}, | ||
"elastic_agent": { | ||
"id": "8ea73fb3-a0a0-4270-aad6-e88edb8b385a", | ||
"snapshot": true, | ||
"version": "8.16.0" | ||
}, | ||
"event": { | ||
"agent_id_status": "verified", | ||
"dataset": "vsphere.virtualmachine", | ||
"duration": 52726937, | ||
"ingested": "2024-09-02T09:44:17Z", | ||
"module": "vsphere" | ||
}, | ||
"host": { | ||
"architecture": "x86_64", | ||
"containerized": true, | ||
"hostname": "elastic-agent-55444", | ||
"id": "e744630f9d4f43dc818e497d221bd0b2", | ||
"ip": [ | ||
"172.18.0.4", | ||
"172.20.0.2" | ||
], | ||
"mac": [ | ||
"02-42-AC-12-00-04", | ||
"02-42-AC-14-00-02" | ||
], | ||
"name": "elastic-agent-55444", | ||
"os": { | ||
"codename": "focal", | ||
"family": "debian", | ||
"kernel": "5.15.153.1-microsoft-standard-WSL2", | ||
"name": "Ubuntu", | ||
"platform": "ubuntu", | ||
"type": "linux", | ||
"version": "20.04.6 LTS (Focal Fossa)" | ||
} | ||
}, | ||
"metricset": { | ||
"name": "virtualmachine", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "https://svc-vsphere-metrics:8989/sdk", | ||
"type": "vsphere" | ||
}, | ||
"vsphere": { | ||
"virtualmachine": { | ||
"cpu": { | ||
"free": { | ||
"mhz": 0 | ||
}, | ||
"total": { | ||
"mhz": 0 | ||
}, | ||
"used": { | ||
"mhz": 161 | ||
} | ||
}, | ||
"datastore": { | ||
"count": 1, | ||
"names": [ | ||
"VxRailtoup-Virtual-Datastore-bc1d-5aa310fb" | ||
] | ||
}, | ||
"host": { | ||
"hostname": "phx-w1c1-esxi04.com", | ||
"id": "host-32" | ||
}, | ||
"memory": { | ||
"free": { | ||
"guest": { | ||
"bytes": 68032659456 | ||
} | ||
}, | ||
"total": { | ||
"guest": { | ||
"bytes": 68719476736 | ||
} | ||
}, | ||
"used": { | ||
"guest": { | ||
"bytes": 686817280 | ||
}, | ||
"host": { | ||
"bytes": 29027729408 | ||
} | ||
} | ||
}, | ||
"name": "xt0nmfpv9", | ||
"network": { | ||
"count": 1, | ||
"names": [ | ||
"PROD_VCF_VMS" | ||
] | ||
}, | ||
"network_names": [ | ||
"PROD_VCF_VMS" | ||
], | ||
"os": "CentOS 4/5/6/7 (64-bit)", | ||
"snapshot": { | ||
"count": 2, | ||
"info": [ | ||
{ | ||
"createtime": "2024-07-03T20:01:34.329Z", | ||
"description": "Created to demo", | ||
"id": 1, | ||
"name": "VM Snapshot 7%2f3%2f2024, 4:01:21 PM", | ||
"state": "poweredOn" | ||
}, | ||
{ | ||
"createtime": "2024-07-05T23:35:40.859Z", | ||
"description": "backup", | ||
"id": 2, | ||
"name": "VM Snapshot 7%2f5%2f2024, 7:35:37 PM", | ||
"state": "poweredOn" | ||
} | ||
] | ||
}, | ||
"status": "green", | ||
"uptime": 5348978 | ||
} | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.