To receive monitoring data messages, application programs can subscribe to the built-in monitoring endpoint. An application can use a content matcher to narrow the message stream.
Procedure
Optional. Compose a content matcher.
To receive the entire stream, omit any content matcher.
To receive a sub-stream, construct an appropriate content matcher.
For example, an application could subscribe to all monitoring messages, or to a sub-stream such as the following:
Only event messages.
Only client metric messages with a specific client label.
Only messages that report a specific client status.