Configuring the scope of sending data to License Service Reporter
You can change settings such as the frequency of sending usage data to License Service Reporter or the period for which the data is sent.
Default behavior
By default, the first audit snapshot that is sent by Usage Metering Service contains all data collected from up to 732 days back. If the snapshot is successfully delivered to License Service Reporter, each consecutive snapshot contains data from the next day after the last date of the previous snapshot. Usage Metering Service does not send the same data more than once.
By default, usage data is sent every 24 hours at 12:05 AM UTC.
Parameters
The following table lists parameters that can be used to modify the scope and frequency of sending snapshot data.
| Parameter | Comment | Format | Default value | Possible values |
|---|---|---|---|---|
REPORTER_SENDER_FREQUENCY
|
Frequency of sending the data to License Service Reporter. | UNIX cron format | 24 hours | Any frequency |
AUDIT_SNAPSHOT_INITIAL_DAYS_BACK
|
Number of days for which data is sent when the first snapshot is sent | Integer | The first snapshot contains all data present in local usage data memory. | Integer |
Procedure
To change any of the parameters, perform the following steps.
- Log in to the OpenShift console of the cluster where the Usage Metering Service is deployed.
- Go to Operators > Installed Operators.
- Click IBM Usage Metering Operator, and open the IBM Usage Metering tab.
- Click ibm-usage-metering-instance, and open the YAML tab.
- Add the following lines to the
specsection.spec: envVariables: - name: <parameter> value: <value>For example, to change the frequency of sending the snapshot data to every 15 minutes, add the following lines.spec: envVariables: - name: REPORTER_SENDER_FREQUENCY value: */15 * * * *