Open lcabaceira opened 8 years ago
It also might be worth to consider if this could be a separate project just for metrics.
Another idea: Maybe it would make sense to have an aggregator that would return all metrics in one API call
Well, if we need to get away from direct JMX Mbeans access because of the community limitation, it might be possible to pull that information via those new rest apis
Implementing custom metrics webscripts
Write a set of webscripts to gather and display known metrics of Alfresco. Solr lag, caches,etc. If these things could be available in a common place it would make monitoring easier when setting up with any kind of system.
Configuring i.e nagios or icingia it’s a nightmare because you have to get some stuff from REST APIs, some stuff from JMX, some stuff from custom code etc.
leveraging the new (v1) rest api’s. Custom apps could make their own metrics available in the same namespace.
Example:
http://localhost:8080/alfresco/api/-default-/public/alfresco/metrics/1/users http://localhost:8080/alfresco/api/-default-/public/alfresco/metrics/1/solr http://localhost:8080/alfresco/api/-default-/public/alfresco/metrics/1/caches http://localhost:8080/alfresco/api/-default-/public/recordsmanagement/metrics/1/rm-specific-metric