How to set an alert for JMS connection pool exhausted?

I have set up a JMX/PMI extension for monitoring the JMS connection pool, and I am tracking the following metrics:

  1. Pool size
  2. Free pool size
  3. Waiting time
  4. Waiting thread count

How can I configure an alert in Dynatrace to notify me when the JMS connection pool is exhausted

Hi @Anbu 
If you are using Dynatrace Managed, the only option is via metric events, where you define the metric and the corresponding threshold.
https://docs.dynatrace.com/managed/discover-dynatrace/platform/davis-ai/anomaly-detection/set-up-a-customized-anomaly-detector/how-to-set-up/metric-events

If you are using Dynatrace SaaS, you have more options. You can use metric events, or alternatively SRG