Red Hat Training

A Red Hat training course is available for Red Hat JBoss Data Virtualization

12.2. Metrics

The hierarchical database can capture a number of different measurements, called metrics , and these are broken into two categories: duration-based metrics (how long something takes) and simple value metrics.
Duration metrics are represented by the org.modeshape.jcr.api.monitor.DurationMetric enumeration, and include:
Metric
Description
Query execution time
The amount of time required to execute a query.
Session duration
The length of time that a session is used before being closed.
Sequencer duration
The length of time required to sequence a node, produce the output, and save the changes to the workspace.
Value metrics are represented by the org.modeshape.jcr.api.monitor.ValueMetric enumeration, and include:
Metric
Style
Description
Active sessions
continuous
The number of active sessions.
Active queries
continuous
The number of active queries.
Workspace count
continuous
The number of workspaces.
Session-scoped locks
continuous
The number of session-scoped locks held by clients.
Open-scoped locks
continuous
The number of open-scoped locks held by clients.
Listener count
continuous
The number of listeners registered with active sessions.
Event queue size
continuous
The number of events that are enqueued for processing and sending to listeners.
Event count
incremental
The number of events that have been sent to at least one listener.
Changed nodes
incremental
The number of nodes that were created, updated, or deleted.
Session saves
incremental
The number of Session.save() calls.
Sequencer queue size
continuous
The number of sequencing operations that are enqueued.
Sequenced nodes
incremental
The number of nodes sequenced.
Values for each of these metrics is captured every 5 seconds, where the continuous metrics are recorded as is (the values continue from one measurement to the next), while the incremental metrics represent distinct perturbations (or increments) from 0.