Description
In the same way that Couchbase Server does, Sync Gateway should collect, publish and log system level stats. This is invaluable for debugging issues, both ongoing and historic, where we're interested in what's going on with the machine/OS/VM as a whole. Without this, we have to rely on a user's own monitoring (which we don't provide any guidance for).
Similar to the Couchbase Server side, some useful metrics are:
- CPU utilisation
- Memory free/used/total
- Swap used/total
More specific to Sync Gateway would be any network stats we can gather, such as:
- Bandwidth
- Connections and state (useful for cross-referencing between OS and SG reported figures)
Slightly less vital than in Couchbase Server, but still useful, is capturing OS total and SG process specific stats separately, e.g. RSS of Sync Gateway itself vs. total memory used/free across the OS