zio/zio-zmx

JMX Integration

Opened this issue · 1 comments

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.

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