From availability perspective, you want to detect as quickly as possible if you are suffering from message server disconnects.
You can create a custom monitoring metric to measure and act on this.
Creation of the custom metric for message server disconnects
Create a custom metric following the steps in this blog. The template to be adjusted is the technical instance SAP ABAP 7.10 and higher template.
Don’t forget to tick it on for monitoring otherwise it is not active.
In expert mode create a custom metric.
Create technical name Z_MESSAGE_SERVER_DISCONNECT:
In the data collection:
Data to enter: diagnostics agent (push). Select ABAP read SysLog. Filter on message number Q0L, Q0M and Q0N. Any of those indicate message server errors. For more information on system log messages, read this blog.
Define the threshold for alerting:
And assign the metric to the ABAP Instance not available alert group: