search cancel

How do I configure EPAgent to pass a value with a decimal place?

book

Article ID: 112981

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

  • If you pass a value as a simple value it assumes the value is a string and will not plot it.
  • If you pass a value as XML type LongCounter, the agent rejects it with an error:
                            <metric type="LongCounter" name="OPSWMON:load_average" value="1.86" />
                            [EPAgent] Metric value from plugin 'Plugin HPSAMON' is invalid: For input string: "1.86"


How do I configure EPAgent to pass a value with a decimal place?

Environment

EPAgent from 9.7x awards.

Resolution

EPAgent only supports integer value for it is numeric input as a whole number, decimals are not supported.

You can change the units of the reported metric to a decimal/fraction of the actual unit. For example, if you are trying to report 0.10 second, change the unit to milliseconds and report the value as 100 milliseconds.

In this case, IntCounter may not be enough to hold the number, as the maximum value it can hold is 32 bits (2,147,483,647). If your new metric exceeds this, you need to use LongCounter, which uses 64 bits to hold the value.