Activating monitoring
Use the mqsichangeflowmonitoring command to activate monitoring after you configure monitoring event sources.
Before you begin
About this task
If monitoring is activated for a message flow, and monitoring properties or a monitoring profile are not configured for the flow, transaction events are emitted. You must ensure that event publication for monitoring messages is enabled and is correctly configured. For more information, see Configuring the publication of event messages.
Monitoring:
MessageFlow:
#publicationOn: inactive # choose 1 of : active|inactive, default inactive
# Ensure Events.BusinessEvents.MQ|MQTT is set
#eventFormat: MonitoringEventV2 # choose 1 of : MonitoringEventV2|WMB
Changes
that you make to the properties in the .conf.yaml file take effect when the
integration server is restarted, and apply to every flow in the integration server.When you configure monitoring for your flows, you can use the mqsichangeflowmonitoring command to activate or deactivate monitoring without restarting the integration server. The options that you set with this command remain in effect until you run the command again or restart the integration server. When you restart the integration server, the settings that are specified in the server.conf.yaml file take effect.
To activate monitoring, specify the -c active parameter on the mqsichangeflowmonitoring command. To deactivate monitoring, specify -c inactive. You can activate or deactivate monitoring for all message flows in all integration servers. Alternatively, you can specify the integration servers, applications, libraries, or message flows for which monitoring is to be turned on or off.
For more information, see the mqsichangeflowmonitoring command.
You can also use a monitoring profile to configure your message flows to emit monitoring events. When you create a monitoring profile, you deploy it to a policy project and then activate it on a specific message flow, application, or integration server. Activate the monitoring profile by using either the mqsichangeflowmonitoring command or the administration REST API. Alternatively, you can specify a monitoring profile as a BAR file override, as described in Configurable properties in a BAR file. You can override a deployed monitoring profile by putting an updated .monprofile.xml file in the integration server's overrides directory, as described in Order of precedence for overrides.
You can check the monitoring options that are set for a message flow, application, or library, by using the mqsireportflowmonitoring command. For more information, see mqsireportflowmonitoring command.
Procedure
Configure monitoring options for a message flow by setting properties in the Monitoring section of the configuration file for your integration node or server (node.conf.yaml or server.conf.yaml):
When monitoring is configured, you can use the mqsichangeflowmonitoring command to dynamically start or stop message flow monitoring, without restarting the integration server: