DX Application Performance Management

  • 1.  Does EPA support double value type?

    Posted Jul 23, 2012 12:21 PM
    Hi,
    i was playing around with EPA Scripts and noticed something weird: I could not inject double type values, like load 1.16.
    I saw in the documentation there are two types: IntCounter and LongCounter. Would you please confirm this?
    Neither community EPA scripts nor Wily plugins did not seem to send any double values. Is there something I'm doing wrong?
    My test script was submitting load average and network traffic in Kb/s.

    Best regards,
    Alex Herisanu


  • 2.  RE: Does EPA support double value type?
    Best Answer

    Broadcom Employee
    Posted Jul 23, 2012 02:14 PM
    If you want to keep the metric has "Kb/s", you need to round the number up or down before sending it to Introscope.
    You could also convert to "Bytes per second" (B/s).


  • 3.  RE: Does EPA support double value type?

    Posted Jul 23, 2012 03:12 PM
    I was afraid you're going to say that.
    I'll multiply the load by 100 and see about network traffic.

    Thank you for your reply. Weird though, not incorporating double values.
    Best regards,
    Alex Herisanu


  • 4.  RE: Does EPA support double value type?

    Posted Jul 24, 2012 05:03 AM
    Here was my solution:

    <metric type="IntCounter" name="ApMon|OS:LoggedUsers" value="2" />
    <metric type="Timestamp" name="ApMon|OS:Uptime" value="21066900" />
    <metric type="IntCounter" name="ApMon|OS:Load1" value="3" />
    <metric type="IntCounter" name="ApMon|OS:Load5" value="6" />
    <metric type="IntCounter" name="ApMon|OS:Load15" value="2" />
    <metric type="IntRate" name="ApMon|Network:bond0_out_kbps" value="18" />
    <metric type="IntRate" name="ApMon|Network:bond0_in_kbps" value="26" />
    <metric type="PerIntervalCounter" name="ApMon|Network:bond0_errs" value="0" />

    I multiplied the load by 100 and rounded the network throughput to the nearest integer.
    I changed the type of throughput related values to IntRate. Also, i added the unit measurement
    type to the name of data series.
    I'm not sure about how to send the uptime, due to the fact that it fluctuates. The definition
    of uptime is:

    "Timestamp—a type which generates successively increasing timestamps."

    I think it should be a LongCounter.

    Best regards,
    Alex Herisanu


  • 5.  RE: Does EPA support double value type?

    Broadcom Employee
    Posted Jul 24, 2012 09:58 AM
    Timestamp is a Java parseable format; which means it's the elapse time since Epoch (1 Jan 1970 00:00:00).


  • 6.  RE: Does EPA support double value type?

    Broadcom Employee
    Posted Jul 25, 2012 11:51 AM
    I also failed to mention that you'll need to convert from human-readable format to milliseconds since Epoch.


  • 7.  RE: Does EPA support double value type?

    Posted Jul 26, 2012 04:10 PM
    Introscope doesn't support decimals. it can only store int, long. It will display String and but SmartStor does not have the capability to store string ...