Logging measurements to the results database
You might want to periodically record custom data in to a database as a performance test runs.
- Sample custom data over a time period (optional)
- Add data values to record
- Add attributes to identify the recorded data
- Use a custom time stamp with the recorded data (optional)
After you set up logging measurements, you might want to change limits for counters and attributes as covered in these tasks.
Sampling custom data over a time period (optional)
With sampling, summary data is recorded at the end of each summary period. Without sampling, all the data that is received is recorded. Under Counters on the Log Measurement dialog, you can specify whether you require sampling or not. Sampling is not selected by default.
- The generated data is collected over the sampling period and summary information is generated.
- Only numeric (REAL) data is summarized.
- The mean value of data that is collected is recorded. The minimum and maximum values can be recorded, in addition to the mean value.
- An extra column Min & Max shows in the editor with check boxes to specify whether you want to record the minimum and maximum values, in addition to the mean value.
Two scenarios can help you decide whether to use log measurement sampling or not.
- Log measurement without sampling
- A status message is generated every 15 seconds. You use a background test to subscribe to this message and record a certain summary status from the message. In this scenario, the Log Measurement action need not use sampling.
- Log measurement with sampling
- You configure a background test to observe the depth of a queue. The value is tracked many times a second. You do not want to record all of these values. Instead, you enable sampling to record the mean of all the values that are received once every 5 seconds.
To use sampling:
Adding data values to record
You must add data values to identify what you want to record during a performance test.
You use counters to record each data value. Each counter has a name, type and value.
There are two types of counters:
- Numeric (REAL)
- String (STRING)
By default, the number of counters is limited to eight REAL and four STRING. For information about increasing the number of counters, see Modifying counter-limits.
To add counters:
Adding attributes to identify the recorded data
Attributes identify the data that is stored by the counters. You first add an attribute and then give it a name and value.
The combination of attributes can identify a series of data items because they are grouped and plotted as a single data series (line) in the performance charts.
By default, the number of attributes is limited to five. For information about increasing the number of attributes, see Modifying attribute-limits.
To add attributes:
Using a custom time stamp with the recorded data (optional)
A UTC time stamp, which is generated by Test Integrations and APIs when the test is run, is stored with each set of counters. You can use this generated time stamp or define a custom time stamp.
By default, the UTC time stamp that is generated by IBM® DevOps Test Integrations and APIs (Test Integrations and APIs) is used (Use current timestamp check box).
To define a custom time stamp:




button.