feat(agent): vms/lxc collectors for runtime and detail with fixtures
This commit is contained in:
parent
ec7f08dfda
commit
da5ed6cd08
6 changed files with 299 additions and 0 deletions
12
agent/test/fixtures/pvesh/lxc.json
vendored
Normal file
12
agent/test/fixtures/pvesh/lxc.json
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"vmid": 200,
|
||||
"name": "minecraft",
|
||||
"status": "running",
|
||||
"uptime": 3600,
|
||||
"cpu": 0.15,
|
||||
"mem": 2147483648,
|
||||
"maxmem": 4294967296,
|
||||
"tags": ""
|
||||
}
|
||||
]
|
||||
22
agent/test/fixtures/pvesh/qemu.json
vendored
Normal file
22
agent/test/fixtures/pvesh/qemu.json
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"vmid": 100,
|
||||
"name": "nginx-proxy",
|
||||
"status": "running",
|
||||
"uptime": 86400,
|
||||
"cpu": 0.05,
|
||||
"mem": 536870912,
|
||||
"maxmem": 2147483648,
|
||||
"tags": "web;production"
|
||||
},
|
||||
{
|
||||
"vmid": 101,
|
||||
"name": "db-backup",
|
||||
"status": "stopped",
|
||||
"uptime": 0,
|
||||
"cpu": 0,
|
||||
"mem": 0,
|
||||
"maxmem": 4294967296,
|
||||
"tags": "db"
|
||||
}
|
||||
]
|
||||
17
agent/test/fixtures/pvesh/qemu_100_agent_interfaces.json
vendored
Normal file
17
agent/test/fixtures/pvesh/qemu_100_agent_interfaces.json
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"result": [
|
||||
{
|
||||
"name": "lo",
|
||||
"ip-addresses": [
|
||||
{ "ip-address": "127.0.0.1", "ip-address-type": "ipv4" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip-addresses": [
|
||||
{ "ip-address": "192.168.1.10", "ip-address-type": "ipv4" },
|
||||
{ "ip-address": "fe80::a", "ip-address-type": "ipv6" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
8
agent/test/fixtures/pvesh/qemu_100_config.json
vendored
Normal file
8
agent/test/fixtures/pvesh/qemu_100_config.json
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "nginx-proxy",
|
||||
"cores": 2,
|
||||
"memory": 2048,
|
||||
"onboot": 1,
|
||||
"scsi0": "local-zfs:vm-100-disk-0,size=32G",
|
||||
"net0": "virtio=AA:BB:CC:DD:EE:FF,bridge=vmbr0"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue