What about monitoring?

313 views
Skip to first unread message

Werner Keil

unread,
Aug 8, 2016, 10:37:10 AM8/8/16
to MicroProfile
Hi,

Similar to logging, I wanted to bring up the monitoring question more explicitly than some thread (I think it was about "actuators" in Spring Boot) did.

For Java there are a couple of solutions:

Probably more, feel free to share others if they're really relevant.


Quite likely some "glue" could also be of value here, similar to e.g. configuration or logging.


Cheers,

Werner

Werner Keil

unread,
Aug 22, 2016, 11:16:11 AM8/22/16
to MicroProfile
Looks like DropWizard Metrics also got a ("somewhat" portable) CDI extension module for monitoring:
https://github.com/astefanutti/metrics-cdi

Werner

Jean-Louis Monteiro

unread,
Aug 22, 2016, 11:19:24 AM8/22/16
to Werner Keil, MicroProfile
Apache Sirona is another one with some CDI support as well.

What do you mean by "("somewhat" portable)"?
Did you try it and can share some more precise feedback?


--
You received this message because you are subscribed to the Google Groups "MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile+unsubscribe@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/3072333a-4b06-4f8c-9081-4763181dd0e3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Werner Keil

unread,
Aug 22, 2016, 11:36:29 AM8/22/16
to MicroProfile, werne...@gmail.com
Thanks for the pointer.

Sirona uses yet another Configuration API: http://svn.apache.org/viewvc/incubator/sirona/trunk/api/src/main/java/org/apache/sirona/configuration/Configuration.java?view=markup
despite what was proposed (in a slightly similar way, but a few extra methods) for Geronimo (or here) a while ago. By the same people who also contribute to Sirona;-| That's scary. Of course it's still incubating, maybe things improve on that, too...?

Will have a look if I can, thanks for mentioning

I'm only referring to the table
Container Version Environment
Weld 2.3.4.Final Java SE 7,8 / CDI 1.2
OpenWebBeans 1.6.3 Java SE 7,8 / CDI 1.2
Jetty 9.3.3 Servlet 3.1
WildFly 8 8.2.1.Final Java EE 7
WildFly 9 9.0.2.Final Java EE 7
WildFly 10 10.0.0.Final Java EE 7

It's mixing CDI Implementations and actual containers quite a bit (e.g. why would Wildfly XYZ not use Weld, too?;-) so chances are it also works in say Glassfish, Paraya or TomEE if they use one of the implementations.

The DeltaSpike Jenkins instances https://builds.apache.org/view/A-D/view/DeltaSpike/ also apply a similar mix btw, maybe if certain containers stick to the RI or a particular implementation of CDI anyway, that's enough.

Werner



On Monday, August 22, 2016 at 5:19:24 PM UTC+2, Jean-Louis Monteiro wrote:
Apache Sirona is another one with some CDI support as well.

What do you mean by "("somewhat" portable)"?
Did you try it and can share some more precise feedback?


On Mon, Aug 22, 2016 at 5:16 PM, Werner Keil <werne...@gmail.com> wrote:
Looks like DropWizard Metrics also got a ("somewhat" portable) CDI extension module for monitoring:
https://github.com/astefanutti/metrics-cdi

Werner

--
You received this message because you are subscribed to the Google Groups "MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.

To post to this group, send email to microp...@googlegroups.com.

Werner Keil

unread,
Aug 22, 2016, 11:39:43 AM8/22/16
to MicroProfile, werne...@gmail.com
Btw. judging from the last commits (3 months ago) Sirona does not seem extremely active.

Maybe it's just summer holidays or because some of its committers are also involved in other projects or commercial products?

Jean-Louis Monteiro

unread,
Aug 22, 2016, 3:26:43 PM8/22/16
to Werner Keil, MicroProfile
Not following up on Sirona as it is not the right place. Just mentioned for information.

Well, the portability might not be perfect, but it does not sound that bad. 
At least they tested and are very transparent with the support. Weld and OWB are supported and are also the 2 well-known CDI implementations, and therefor a lot of App Servers using them would work (to be tested of course).

Container is also commonly used for EJB, CDI so I'm not really to focused on that.
EJB Spec calls it EJBContainer, Weld calls it WelDContainer, Deltaspike calls it CdiContainer

Seems like a detail to me.

To unsubscribe from this group and stop receiving emails from it, send an email to microprofile+unsubscribe@googlegroups.com.

To post to this group, send email to microp...@googlegroups.com.

Werner Keil

unread,
Aug 22, 2016, 4:05:20 PM8/22/16
to MicroProfile, werne...@gmail.com
Especially for "Fat JAR" scenarios, also look at DropWizard (the Metrics also work independently) I think the "container" becomes less important.

I have not tested it with e.g. Spring Boot myself, but one of the modules PCP Parfait (also mentioning it mainly as an example, I did so before in a different thread) comes is especially tailored to Spring. 

Aside from the obvious JMX I don't think Parfait targets CDI with a special module or annotation support yet, but given Red Hat is currently a main contributor, I guess it could be of interet to Parfait as well. 

The most perfect solution would of course be a portable annotation, similar to what Antonin (in fact he also  works for Red Hat;-) did, but allowing to back them with a few solutions, e.g. 
- DropWizard Metrics
- Parfait
- Sirona
and possibly a few others.

The annotations could be something to define under Microprofile.

Werner
Reply all
Reply to author
Forward
0 new messages