Open cwei-bgl opened 7 years ago
can you please check how your filters look like? that's under the kamon.metric.filters
configuration key, maybe you are not including anything there and then, nothing gets reported to the JMX module.
Thanks @ivantopo . The following is my configuration. ` kamon { metrics { tick-interval = 2 second filters = [ { actor { includes = [ "" ] excludes = [] } }, { akka-actor { includes = [ "" ] excludes = [] } }, { trace { includes = [ "*" ] excludes = [] } } ] }
jmx {
subscriptions {
histogram = [ "**" ]
min-max-counter = [ "**" ]
gauge = [ "**" ]
counter = [ "**" ]
trace = [ "**" ]
trace-segment = [ "**" ]
akka-actor = [ "**" ]
akka-dispatcher = [ "**" ]
akka-router = [ "**" ]
system-metric = [ "**" ]
http-server = [ "**" ]
# Here is the addition of the JMX exporting functionality to the subscriptions
kamon-mxbeans = [ "**" ]
}
}
modules { kamon-mxbeans { auto-start = yes requires-aspectj = no extension-class = "kamon.jmx.extension.JMXMetricImporter" } }
kamon-mxbeans { mbeans = [ { "name": "my-mbean", "jmxQuery": "test:type=exampleBean,name=*", "attributes": [ { "name": "Value1", "type": "counter" } ] } ], identify-delay-interval-ms = 1000, identify-interval-ms = 1000, value-check-interval-ms = 1000 } } `
About the part below. How can i configure it to monitor certain type of properties in all beans?
mbeans = [ { "name": "my-mbean", "jmxQuery": "test:type=exampleBean,name=*", "attributes": [ { "name": "Value1", "type": "counter" } ] }
The Kamon documentation states 'For connect to your application you need [add some JVM parameters] for start JMX agent and install a JMX client (for example VisualVM)'. I already have a javaagent parameter for aspectJ, Can I add a JMX agent still? Is there a full running example that i can follow? Thanks.
@cwei-bgl Just FYI How do I got metrics to Graphite -> Graphana Add dependency "org.fusesource" % "sigar" % "1.6.4", And call SystemMetrics.startCollecting()
I was following the example trying to get kamon-mxbeans working, but with no luck. I saw the following from the log, which I would assume JMX extension is started, but there was no kamon actor mbean information. Could you please help. Thanks in advance.