Closed JBlond closed 2 years ago
Sorry also don't use ceph but here you could try:
ceph osd df | grep "TOTAL" | awk '{print $14}'
This should output the %USE from the TOTAL Row.
Yepp that works
root@pve-01:~# ceph osd df | grep "TOTAL" | awk '{print $14}'
15.62
root@pve-01:~#
What may be also worth parsing is
root@pve-01:~# ceph pg stat
1025 pgs: 1025 active+clean; 3.1 TiB data, 23 TiB used, 121 TiB / 144 TiB avail; 462 KiB/s rd, 9.5 MiB/s wr, 588 op/s
root@pve-01:~#
ceph pg stat | awk '{print $8}'
Thanks for testing, added the Script.
It would be great to have ceph support