Expose Dropwizard Metrics via our JMX agent

Description

The Newts API uses Dropwizard's Metrics package for keeping track of various statistics. We need to expose metrics in this registry via JMX.

When exposing the metrics via JMX, we should make sure they are prefixed with some sort of Newts specific namespace as to avoid clashes with other metrics exposed using a similar approach.

When using the Newts API, we currently initialize the MetricRegistry in 'applicationContext-newts.xml' (see the features/newts branch).

Success criteria:
We are able to query statistics about the 'search' timer via JMX - see org.opennms.newts.cassandra.search.CassandraSearcher for details.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Christian Pape August 10, 2015 at 3:42 AM

Merged

fooker August 6, 2015 at 10:07 AM

Fixed

Details

Assignee

Reporter

Labels

Story Points

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created June 30, 2015 at 12:29 PM
Updated June 3, 2019 at 8:05 AM
Resolved August 10, 2015 at 3:42 AM