Hello rudais,
here we use piwik (
https://piwik.org/) to keep track of the users connected to the community server.
There is a js script (generate by piwik) to add on each community server page.
Just copy the script in /var/www/onlyoffice/WebStudio/js/third-party/
and add this line to web.appsettings.config :
<add key="web.custom-scripts" value="/js/third-party/piwik.js" />
About the Document Server, you can send statistic to a graphite server (
https://graphiteapp.org/).
You can do that by modifying the config.js from the metrics modules (/var/www/onlyoffice/documentserver/server/Metrics/config/config.js)
Here an example :
{
port: 8125
, graphite: { legacyNamespace: false, globalPrefix: "escola" }
, graphiteHost: "your_graphite_server_host"
, graphitePort: 2003
, flushInterval: 60000
, backends: [ "./backends/graphite" ]
}
escola.gauges.ds.expireDoc.connections.edit : show the number of users editing a document on the document server
escola.gauges.ds.expireDoc.connections.view : show the number of users viewing a document on the document server
After that, if you want better graph, you can use Grafana (
https://grafana.com/) with graphite (
http://docs.grafana.org/features/datasources/graphite/).
the result :

- graph.jpg (53.09 KiB) Viewed 498 times
hope this helps

Yoann.