zio / zio-zmx

Monitoring, Metrics and Diagnostics for ZIO
https://zio.github.io/zio-zmx/
Apache License 2.0
85 stars 47 forks source link

JMX Integration #306

Open adamgfraser opened 2 years ago

adamgfraser commented 2 years ago

It would be good to provide integration with JMX so that values from Mbeans can be exposed through ZIO metrics. See zio/zio#5582 for an example of this type of integration for a specific set of metrics.

atooni commented 2 years ago

There is some rudimentary code at https://github.com/blended-zio/blended-zio/tree/main/blended.zio.jmx/src/main/scala/blended/zio/jmx which has a MBeanServerFacade and also some ideas of publishing arbitrary case classes to JMX. Perhaps that could be used as a starting point