Message flow accounting and statistics accounting origin

Accounting and statistics data can be identified by the originating message flow.

This provides an identification for statistics that are collected for particular message flows, execution groups, or brokers, and can therefore help you to use the information that is collected. This identifier is referred to as the accounting origin.

For example, if your broker hosts a set of message flows associated with a particular client in a single execution group, you can set a specific value for the accounting origin for all these flows. You can then analyze the output provided to assess the use that the client or department makes of the broker, and charge them accordingly.

If you want to track the behavior of a particular message flow, you can set a unique accounting origin for this message flow, and analyze its activity over a given period.

To make use of the accounting origin, you must do the following:

You can complete these tasks in either order; if you configure the message flow before starting data collection, the broker ignores the setting. If you start data collection, specifying accounting origin support, before configuring the message flow, all data is collected with the Accounting Origin set to Anonymous. The broker acknowledges the origin when you redeploy the message flow. You can also modify data collection that has already started to request accounting origin support from the time that you issue the command. In both cases, data that has already been collected is written out and collection is restarted.

When data has been collected, you can review information for one or more specific origins. For example, if you select XML publication messages as your output format, you can start an application that subscribes to the origin in which you are interested.

Related concepts
Message flows

Related tasks
Developing message flow applications
Collecting message flow accounting and statistics data
Setting message flow accounting and statistics accounting origin
Configuring ESQL within nodes

Related reference
mqsichangeflowstats command
Message flow accounting and statistics data