3

Are there any built in JMX exposed monitoring/statistics that can be enabled in Akka (Java), besides the Cluster MBean? I have looked at Typesafe Console, but since it requires a license to be used with collecting data from multiple nodes, I was hoping to be able to achieve the same with plain JMX. I have checked the Akka documentation without any luck on this topic.

NilsH
  • 13,705
  • 4
  • 41
  • 59
  • could you please have a look at this issue ? https://stackoverflow.com/q/48395416/3301316 – Jet Jan 23 '18 at 11:30

2 Answers2

5

No - the Cluster JMX support is it.

There are a couple of projects aimed at collecting data from Akka. Both are at very early stages at this point but the code could be a starting point for you.

Both are using AspectJ to get the data out of Akka.

Typesafe Console is free to use in non-Production environments, if that works for you.

sourcedelica
  • 23,940
  • 7
  • 66
  • 74
  • I read somewhere that Typesafe Console with support for collecting data from multiple nodes required the commercial license? – NilsH Jan 21 '14 at 13:39
  • No, but there are other restrictions (see details: http://typesafe.com/blog/typesafe_console_-_now_free_for_developers) – sourcedelica Jan 21 '14 at 15:38
  • In that case, do you have any examples of how to set up an Akka application on multiple nodes to send tracing data to the same atmos collector? Or how to use the console with multiple atmos instances? I have not found any configuration parameters that does this. – NilsH Jan 22 '14 at 06:23
  • Here's where I read about the license requirement btw: https://groups.google.com/forum/#!topic/typesafe-console/NwkumCuOzDA – NilsH Jan 22 '14 at 06:58
  • No - I would ask about it on the typesafe-console Google group. – sourcedelica Jan 22 '14 at 20:18
  • Seems like one actually does need the subscription edition to to cluster collection: https://groups.google.com/forum/?hl=en#!topic/typesafe-console/Wy_c_bVJhZY – NilsH Jan 24 '14 at 07:54
  • Ya, I saw your posting to the list. Sorry about that. I misinterpreted the docs. I should have pointed you to the list earlier :) – sourcedelica Jan 24 '14 at 14:44
  • 1
    Note that Typesafe Console is now in the End-of-Life process: https://groups.google.com/forum/#!topic/typesafe-console/MoGhs21U3IA – Mario Camou Jun 03 '14 at 13:29
  • @sourcedelica....how to implement jmx console for akka cluster project ? could you help on this ? https://stackoverflow.com/q/48395416/3301316 – Jet Jan 23 '18 at 11:33
2

Try this. I did a pull request with the necessary functionality to Kamon. After the release of this version (after 0.5.1), all you will need to do to make jmx work - you need to add the module kamon-jmx to project and activate it autostart on configuration.

Tolsi
  • 656
  • 9
  • 20