Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-14 Thread Adrian Banasiak
Thank you, that should do the trick. 2014-05-14 6:41 GMT+02:00 Kai Zhang log1...@yeah.net: Hi Adrian, You may be interested in rados -p poo_name df --format json, although it's pool oriented, you could probably add the values together :) Regards, Kai 在 2014-05-13 08:33:11,Adrian

[ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Adrian Banasiak
Hi, i am working with test Ceph cluster and now I want to implement Zabbix monitoring with items such as: - whoe cluster IO (for example ceph -s - recovery io 143 MB/s, 35 objects/s) - pg statistics I would like to create single script in python to retrive values using rados python module, but

Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Haomai Wang
Not sure your demand. I use ceph --admin-daemon /var/run/ceph/ceph-osd.x.asok perf dump to get the monitor infos. And the result can be parsed by simplejson easily via python. On Tue, May 13, 2014 at 10:56 PM, Adrian Banasiak adr...@banasiak.it wrote: Hi, i am working with test Ceph cluster and

Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Adrian Banasiak
Thanks for sugestion with admin daemon but it looks like single osd oriented. I have used perf dump on mon socket and it output some interesting data in case of monitoring whole cluster: { cluster: { num_mon: 4, num_mon_quorum: 4, num_osd: 29, num_osd_up: 29, num_osd_in:

Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Mike Dawson
Adrian, Yes, it is single OSD oriented. Like Haomai, we monitor perf dumps from individual OSD admin sockets. On new enough versions of ceph, you can do 'ceph daemon osd.x perf dump', which is a shorter way to ask for the same output as 'ceph --admin-daemon /var/run/ceph/ceph-osd.x.asok perf

Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Don Talton (dotalton)
...@ceph.com Subject: Re: [ceph-users] Monitoring ceph statistics using rados python module Adrian, Yes, it is single OSD oriented. Like Haomai, we monitor perf dumps from individual OSD admin sockets. On new enough versions of ceph, you can do 'ceph daemon osd.x perf dump', which

Re: [ceph-users] Monitoring ceph statistics using rados python module

2014-05-13 Thread Craig Lewis
On 5/13/14 09:33 , Adrian Banasiak wrote: Thanks for sugestion with admin daemon but it looks like single osd oriented. I have used perf dump on mon socket and it output some interesting data in case of monitoring whole cluster: { cluster: { num_mon: 4, num_mon_quorum: 4, num_osd: