As I mentioned yesterday here, there is an issue with current scheme of metrics.
With current scheme you cannot do simple math like > SELECT num_osd - num_osd_up FROM "ceph_cluster_stats" Instead you will need query like > SELECT (SELECT last("value") FROM "ceph_cluster_stats" WHERE "type_instance" = 'num_osd') - (SELECT last("value") FROM "ceph_cluster_stats" WHERE "type_instance" = 'num_osd_up') which is not supported by InfluxDB. I know this type of queries works perfectly in prometheus or SQL world, but AFAIK you unfortunately cannot easily combine multiple series in InfluxDB. To Mario's issue with alerting - maybe you can try to use kapacitor for alerting purposes. I have no direct experiences with it, but it should be easily controlled via chronograf and could solve your issue. M. On 12/11/19 4:58 AM, Konstantin Shalygin wrote: > >> But it is very difficult/complicated to make simple queries because, for >> example I have osd up and osd total but not osd down metric. >> > To determine how much osds down you don't need special metric, because > you already > > have osd_up and osd_in metrics. Just use math. > > > > > k > > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Miroslav Kalina Systems developement specialist miroslav.kal...@livesport.eu +420 773 071 848 Livesport s.r.o. Aspira Business Centre Bucharova 2928/14a, 158 00 Praha 5 www.livesport.eu
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com