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 -- [email protected]
> To unsubscribe send an email to [email protected]
> 

-- 
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg). Geschäftsführer: Felix Imendörffer

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to