feat(agent): pvesh storage collector
This commit is contained in:
parent
8c3e953e4e
commit
ec7f08dfda
3 changed files with 108 additions and 0 deletions
35
agent/test/fixtures/pvesh/storage.json
vendored
Normal file
35
agent/test/fixtures/pvesh/storage.json
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[
|
||||
{
|
||||
"storage": "local",
|
||||
"type": "dir",
|
||||
"content": "backup,iso,vztmpl",
|
||||
"active": 1,
|
||||
"enabled": 1,
|
||||
"used": 50000000000,
|
||||
"total": 500000000000,
|
||||
"avail": 450000000000,
|
||||
"used_fraction": 0.1
|
||||
},
|
||||
{
|
||||
"storage": "local-zfs",
|
||||
"type": "zfspool",
|
||||
"content": "images,rootdir",
|
||||
"active": 1,
|
||||
"enabled": 1,
|
||||
"used": 200000000000,
|
||||
"total": 500000000000,
|
||||
"avail": 300000000000,
|
||||
"used_fraction": 0.4
|
||||
},
|
||||
{
|
||||
"storage": "backup-nfs",
|
||||
"type": "nfs",
|
||||
"content": "backup",
|
||||
"active": 0,
|
||||
"enabled": 1,
|
||||
"used": 0,
|
||||
"total": 0,
|
||||
"avail": 0,
|
||||
"used_fraction": 0.0
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue