Once you have, designed the metering solution by creating,
meter types
meters
stream with meter processor including guiding rules, and guiding rules has been tested using preview.
The next step is to execute the stream with meter processor, as the processing of the usage data and updates on meters relies on the stream execution. If a stream containing a Meter processor connected to a set of meters is not executed, the meters linked to that stream will not be updated, reset or flushed.
To ensure that meters are calculating for correct period and are being flushed as defined in Reset schedule, it is recommended to run the stream with a frequency higher than the meters are reset according to the meter types' Reset schedule. For example, if you have configured the meter type to reset the meters once a day, then the stream linked to your meter type should run at least once a day or more. See Meter Reset in Metered Output Record
The Inspect view, can be used to get overview of the different meters associated with the Meter processor function and make sure that meters are being updated correctly after stream execution, see Meter Inspector.
Stream can be executed on regular basis by using the stream scheduling Schedule. If stream configuration is updated then then stream must be rescheduled to take changes in effect.
Realtime vs Batch Stream Execution
The stream can be executed in batch and real-time mode. For more information on real-time and batch streams, see Glossary
When a stream is executed as a batch stream, the Meter Processor will start by scanning for meters whose period end has passed. If any meters whose period has ended are found, they will be flushed to next processor in stream and reset, starting a new metering period before processing incoming data. If a stream is configured to flush by Period end, in the meter processor a scan to check meter period end will also be performed at the end of the stream execution, but if a stream is configured to flush by Stream execution then all meters in your storage linked to that meter processor will be reset and flushed regardless of whether the meters period have ended or not.
When you have a stream in a real-time scenario, the scan to check meter period end will execute once every 60 seconds to check for any meters whose period has ended. This means that meters can be flushed once every minute. A Meter processor running in a real-time scenario can only be configured with a flush by Period end.