Re: Python API mon_comand()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
> 

-- 
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 -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux