DX Application Performance Management

Expand all | Collapse all

Javascript calculator count unused metrics

Jump to Best Answer
  • 1.  Javascript calculator count unused metrics

    Posted 03-19-2015 05:00 PM

    Hi all folks,

    I spent some time to write a simple Javascript calculator to count some values.

    In general every works fine, but the calculator count unused metrics/agents (the metrics/agents are displayed in gray) too.

     

    Does someone know, how to ignore/identify this unused metrics/agents.

    All values are "0", but on some of the used/active metrics/agents lots of values are "0" too.

     

    Thanks for any help or suggestion,

    Lutz



  • 2.  Re: Javascript calculator count unused metrics
    Best Answer

    Posted 03-19-2015 06:54 PM

    Sorry for the question,

    after reading some additional documents I fixed it myself.

     

    Something like this seems to fix the problem of the gone resources (metrics/agents).

     

    for (i=0; i < metricData.length; i++)
    {
        agent = metricData[i].agentName.processURL;
        metric = metricData[i].agentMetric.attributeURL;
        value = metricData[i].timeslicedValue.value;
        absent = metricData[i].timeslicedValue.dataIsAbsent();
        frequency = metricData[i].frequency;
        attribute = "";

        if (absent)
            continue;

     

    Any other solutions/ideas to do this,

    thanks,

    Lutz



  • 3.  Re: Javascript calculator count unused metrics

    Broadcom Employee
    Posted 03-19-2015 05:24 PM

    You can wait for it to age out or you can restart the EM or cluster.

    Is the calculator running from the MOM, collector, or standalone EM?



  • 4.  Re: Javascript calculator count unused metrics

    Posted 03-19-2015 07:04 PM

    Sorry,

    no I can't restart the EM. On the other hand in some days there are some new outdated agents/metrics available.

    You can wait for it to age out or you can restart the EM or cluster.

    Is the calculator running from the MOM, collector, or standalone EM?

    The calculator is running on the collector.

    Bye, Lutz