feat(agent): zfs collector for pools + datasets/snapshots with fixture tests
This commit is contained in:
parent
6fca450d7e
commit
8c3e953e4e
5 changed files with 305 additions and 0 deletions
23
agent/test/fixtures/zfs/zpool_list.json
vendored
Normal file
23
agent/test/fixtures/zfs/zpool_list.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"output_version": { "command": "zpool list", "vers_major": 0, "vers_minor": 1 },
|
||||
"pools": {
|
||||
"rpool": {
|
||||
"name": "rpool",
|
||||
"size": 500000000000,
|
||||
"alloc": 200000000000,
|
||||
"free": 300000000000,
|
||||
"frag": 17,
|
||||
"cap": 40,
|
||||
"health": "ONLINE"
|
||||
},
|
||||
"tank": {
|
||||
"name": "tank",
|
||||
"size": 8000000000000,
|
||||
"alloc": 6000000000000,
|
||||
"free": 2000000000000,
|
||||
"frag": 55,
|
||||
"cap": 75,
|
||||
"health": "DEGRADED"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue