Replies: 1 comment
-
When registering a new metric with
com.codahale.metrics.jmx.ObjectNameFactory is package private in Unfortunately you also need to know the metric types which are hardcoded in the implementation (see usages of
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I am using the latest
metrics-jmx (4.2.12)
library.Here is a snippet of my code
Initialize the metrics registry:
Register metrics:
Get the count using
ManagementFactory.getPlatformMBeanServer()
The issue is it says that the metric is not registered i.e
server.isRegistered(metric)
returnsfalse
.This works with
metrics-jmx (4.0.7)
but notmetrics-jmx (4.1.0)
Can someone help me if I need to do something else to achieve this? or is it an issue in the library?
Beta Was this translation helpful? Give feedback.
All reactions