Monitoring Replication Follower
How to monitor the Follower status using the plugin.
Solution
Since arangodb , integrating it with the collectd curl_JSON plugin should be an easy exercise. However, only very recent versions of collectd will handle boolean flags correctly.
Since replication appliers are active per database and our example doesn’t use the default , we need to specify its name in the URL like this: _db/testDatabase
.
We need to parse a document from a request like this:
A running replication will return something like this:
We create a simple collectd configuration in /etc/collectd/collectd.conf.d/follower_testDatabase.conf
that matches our API:
So, basically state/running
will give you 0
/1
if its (not / ) running through the collectd monitor.