Fedora 4 is instrumented using Metrics. These metrics are exposed via JMX and an HTTP API. All REST API operations track timing and histogram information. Key internal API methods are also included. Modeshape includes its own metrics reporting over JMX.
Here is an example metrics block:
To enable Metrics reporting to JMX, add the following System Properties to your container startup script/command:
To inspect the metrics published to JMX,
- start jconsole,
- connect to the container process,
- then select the MBeans tab and navigate to "org.fcrepo"
The Metrics reporter can also be configured to report to Ganglia or Graphite to track and store data points over time. Fedora 4 ships with an example Graphite integration. See the documentation for setting up a Graphite locally or on Amazon EC2.