Am 15.01.21 um 09:24 schrieb Robert Sander:
Hi,
I am trying to get some statistics via the Python API but fail to run the equivalent of "ceph df detail".
...snip...
cluster.mon_command(json.dumps({'prefix': 'df detail', 'format': 'json'}), b'') (-22, '', u'command not known')
Anything I can do to get the output of "ceph df detail" via Python API? I would like to have the stats fields "rd", "wr", "rd_bytes" and "wr_bytes" per pool.
https://docs.ceph.com/en/latest/api/mon_command_api/#df cluster.mon_command(json.dumps( { 'prefix': 'df', 'detail': 'detail', 'format': 'json'} ), b'')
Regards
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg). Geschäftsführer: Felix Imendörffer