python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 602 forks source link

Add replication.master_link_status stat #726

Closed jschrama closed 2 years ago

jschrama commented 5 years ago

Redis replicas report the status of their connection to the master, which can either be "up" or "down". The redisstat collector will now take this information and publish it as a stat (up: 1, down: 0).

This stat can be used to provide insights into the state of replication, as well as for alerting on breakage.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 24.394% when pulling 74aa912a6efc37c74d5fa73d58eb07d40bb6fd0f on jschrama:master into 0f3eb04327d6d3ed5e53a9967d6c9d2c09714a47 on python-diamond:master.