DX Application Performance Management

 View Only
  • 1.  Perl based application Monitoring

    Posted Sep 10, 2010 03:15 PM
    HI,

    Can we monitor perl based application with Introscope?.

    Thanks


  • 2.  RE: Perl based application Monitoring

    Posted Sep 11, 2010 04:04 PM
    Hi Madhu,
    out of the box, natively, is not possible. (yet?)
    My idea is to write performance data from the Perl app to a log and use a EPA to read that log and sent the metrics to EM.

    Regards,
    Alexandre Andrade


  • 3.  RE: Perl based application Monitoring

    Broadcom Employee
    Posted Aug 10, 2019 12:01 AM
    why bother writing a file; just stream it to the HTTP Listener on EPA/APMIA.

    ------------------------------
    Custom Solution Architect
    Broadcom
    ------------------------------



  • 4.  RE: Perl based application Monitoring

     
    Posted Sep 13, 2010 07:10 PM
    Thanks Alexandre! Does this answer your qyuuestion madhu?

    Chris


  • 5.  RE: Perl based application Monitoring

    Posted Sep 16, 2010 07:00 AM
    Another option is to setup your EPAgent to listen on a Socket or via HTTP, and then send metrics from within you perl program using a TCP socket or HTTP call.

    eg. In EPagent.properties uncomment
    #################################
    # EPAgent Configuration
    #-----------------

    # Network port on which to receive simple or XML formatted data. If commented
    # out or left unconfigured then EPAgent will not listen for data.
    #
    #introscope.epagent.config.networkDataPort=8000

    # Network port on which to listen for HTTP GET commands. If commented out or
    # left unconfigured then EPAgent iwll not listen for HTTP commands
    #
    #introscope.epagent.config.httpServerPort=8080


    Then use Perl to write to either. I will leave that to you.


  • 6.  RE: Perl based application Monitoring

    Broadcom Employee
    Posted Sep 16, 2010 09:33 AM
    I'll add my 2 cents worth and say that if you're interested in having an all-inclusive program, there are examples of how to use the default metric builder PrintMetric.pm found in <epagent_home>/lib/perl/Wily.
    I use the module in all of my perl programs for EPA.

    ---start code block---
    use FindBin;
    use lib ("$FindBin::Bin", "$FindBin::Bin/lib/perl", "$FindBin::Bin/../lib/perl");
    use Wily::PrintMetric;

    --do some stuff here

    --send metrics to epa
    Wily::PrintMetric::printMetric( type => 'IntCounter',
    resource => 'Device',
    subresource => $device,
    name => 'Reads/sec',
    value => int ($deviceStats[1]),
    );
    ---end block---

    You can call PrintMetric as many times as needed depending on the number of metrics collected.

    -Hiko


  • 7.  RE: Perl based application Monitoring

    Posted Sep 16, 2010 10:33 AM
    Thanks Alex,warren and Hiko for your suggestion. I will try to implement your suggestions and let you know i am success or not.