ZhuoRoger / mongomon

MongoDB performance monitor for open-falcon
48 stars 28 forks source link

mongodb replica-set 监控报错 #6

Open zzlyzq opened 7 years ago

zzlyzq commented 7 years ago

兄弟,我们发现在监控 3.2的mongodb的时候,如果是集群,那么会采集失败,主要是 repl_status_dict["repl_optime"] = repl_member["optime"]["ts"].time, 需要加上["ts"],以及为了解析mongodb的 Timestamp,需要pip install mongo-connector。

参考: http://blog.csdn.net/vbaspdelphi/article/details/52796411

Mikedu1988 commented 5 years ago

非常好!我也碰到了这个坑

hanzixiaoshu commented 4 years ago

漂亮,兄嘚