Skip to main content

Metrics

The FlowerDocs platform showcases a range of metrics that provide quantitative feedback on the use of FlowerDocs Core. These metrics cover various aspects, from service consumption to JVM usage.

Most metrics are displayed with tags, providing contextualized, more precise metrics.

Application metrics

Components

Component metrics are listed in the tables below. They are displayed with tags enabling them to be filtered according to:

  • the scope concerned (scope)
  • the exception triggered (exception)
NameDescription
createDocumentsCreate documents
getDocumentsGet documents
searchDocumentsSearch documents
updateDocumentsUpdate documents
deleteDocumentsDelete documents
addFilesDocumentsAdd content to documents
getFileDocumentsGet the contents of documents
getFilesDocumentsGet the contents of documents
promoteVersionCreate a document version
getVersionsVersionGet versions of documents
revertVersionRevert to document versions

OperationHandler

Executions of OperationHandlers can also be monitored using the following metrics:

  • invokeSyncOperationHandler for those executed synchronously
  • processAsyncOperationHandler for those executed asynchronously

These metrics are published with the following tags:

NameDescription
ObjectTypeObject type concerned
actionAction to which the OperationHandler reacts
phaseExecution phase
registrationIdentifier of the subscription
scopeIdentifier of the scope concerned
exceptionProvoked exception or none

A metric is exposed from the moment the operation was first executed.

Other

Dozens of other metrics are exposed, such as exports (ZIP or CSV), conversions and authentications. These may change from version to version and can be browsed in the export system used (see section below).

Technical metrics

The main technical metrics exposed by FlowerDocs Core are listed below.

NameDescription
process.cpu.usageCPU usage of the Java process
process.files.maxMaximum number of files that can be opened
process.files.openNumber of files opened
process.start.timeJava process start time
process.uptimeJava process uptime
system.cpu.usageHost system CPU usage

Metrics consultation

REST API

The metrics are exposed on the /actuator/metrics endpoint and like the other Actuator endpoints. Access requires basic authentication by an account with the SYSTEM_ADMIN role.

GET /core/actuator/metrics HTTP/1.1
Authorization: Basic <basic authorization>

These web services can be consumed from various monitoring applications. In this case, the use of a specific user account is recommended.

JMX

Metrics are exposed through JMX MBean in the metrics namespace. They can, for example, be consulted using tools provided by a JDK such as jconsole or jvisualvm (with the VisualVM-MBeansplugin). As MBeans do not support tag logic, the names of published metrics are concatenated with their tags.


By default, the technology can be accessed locally to monitor the application and consult MBeans.

This technology can also be used remotely, with additional configuration. Typically, by adding the properties below to the JVM, it is possible to access MBeans unsecured from a remote machine.

-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=6001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=6001
info

See official documentation for more information.