ASAP 2.7 Extension Manual

Configuring the ASAP Extension
HP NonStop ASAP Extension Manual425265-004
2-10
Configuring Metrics (EDL Attributes)
Configuring Metrics (EDL Attributes)
To define metrics, use the EDL MetricRule attribute property to define the metric
formula.
For all DataItem types except constants, ASAPX uses the difference between samples
as the base value to begin the calculation. For example, if DataItem 0 is defined as an
integer and contains a value of 12 at the first sample and a value of 15 at the second,
the difference between sample 1 and sample 2 is 3. 3 is then used whenever DataItem
0 is used in metric calculations. If a time-unit DataItem type is specified, the difference
between samples is used, but ASAPX converts milliseconds and microseconds to
seconds before using them in any calculation.
For constant DataItem types, ASAPX uses the value itself as the base value in
calculations. For example, if a constant DataItem contains a value of 37 at the last
interval, a value of 37 is used in all metric calculations.
ASAPX cannot perform math on DataItems defined as text strings, so they cannot be
used in algebraic formulas.
To configure a metric, enter a calculation specification for the metric using the EDL
MetricRule statement. The calculation specification tells ASAPX how to produce the
metric value at each statistics interval.
A calculation specification is any valid algebraic formula defined using this notation:
These MetricRule formulas define a total of nine metrics using the six DataItems
defined in Example: DATAITEMS EDL Property on page 2-9:
#n instructs ASAPX to use the DATAITEM specified by n, where n is from 0 through 11. If
the DATAITEM is not a constant, ASAPX uses the difference between samples to
determine the DATAITEM value. If the DATAITEM is a constant, ASAPX uses the
value of the DATAITEM at the last sample. DATAITEMs defined as microseconds and
milliseconds are automatically converted to seconds before any calculation.
Cx indicates the number following the C is a constant. x is any 32-bit integer value.
S instructs ASAPX to use the number of seconds in the sample interval in the
calculation. This is useful for producing rates and busy percentages.
Attribute Name MetricRule Help
TransCount #0 Transaction count
TransRate #0/S Transaction rate
ErrorRate #1/S Error rate
Success #0/(#0 + #1) * C100 Success percentage of all transactions
RespT #2/(#0 + #1) Average response time per transaction
ServerBusy #2/S * C100 Server percent busy
SendBusy #3/#2 * C100 Server send busy percent
State #4 Processing state
Alert #5 Alert level