I’ve been using Netdata on my servers to monitor many system parameters for quite a while now. What missed so far is Nextcloud. I filled this gap with a plugin for Netdata. The plugin uses the API which is provided by the “Monitoring” app to display the number of active users.
You get the source and description at Github.