Can I have an JBoss ON Alert for JCA Resource Pool AvailableCount?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Operations Network (ON) 3.1.2
  • Red Hat JBoss Enterprise Application Platform (EAP) 6.0

Issue

  • We would like to setup an Alert if AvailableCount for JCA Resource Pool goes below a certain threshold. Would like to know the best way to set up such an alert.
  • Can I have an JBoss ON Alert for JCA Resource Pool AvailableCount?

Resolution

The only collectable metrics for EAP 6 JCA Resource pools are "Current Thread Count", "Largest Thread Count" and "Rejected Count", they are all disabled in JBoss ON by default, so first you would need to enable these metrics via the Resources > Monitoring >Schedules tab. Then since you will only have Current Thread count instead of Available Thread Count you would need to base your alert on the Maximum Pool size you have set.

For Example:

  • The maximum pool size is set to 50.
  • Create Alert with Condition Type - "Measurement Absolute Value Threshold"
  • For Metric, select "Current Thread Count"
  • For Comparator set to "Equal"
  • Metric Value set to 45

This would trigger the alert when there are only 5 Threads left in the Pool.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.