How to Integrate Script data with LAMA (Logging and Monitoring Mechanism)

How to Integrate Script data with LAMA (Logging and Monitoring Mechanism)

This guide outlines the process for integrating data collected from scripts into LAMA using Applications Manager.


1. Create a Custom Monitor Type  

  • Objective: Set up a custom monitor type to hold data collected from the script.

    • Read more about Custom monitor type creation.
    • Define the monitor type, ensuring the attributes are numeric-based.

      • Attributes: The attributes should represent the data collected by your script. For example: Throughput, Total Time Taken etc.

    • Set the delimiter according to the structure of the script’s output. This ensures that the output can be parsed correctly into respective attributes.

  • Example:

    • If your script outputs data like Throughput:500|TotalTime:300, the delimiter would be set as |.

We were unable to process some of the images.


2. Add Script Monitors to the Custom Monitor Type  

    1.  Add new monitors under the Custom Monitor Type (e.g., CustomTypeLAMA) that you created.


    1. Specify the path to the output file generated by the script, which contains the data.

    2. Set the polling interval to 1 minute, meaning the system will collect data every minute.

3. Configure LAMA for Custom Types Integration  

  • Objective: Modify the LAMA configuration to recognize your custom monitor type and the attributes it collects.

    1. Open the LamaConfiguration.xml file located in:

            AppManagerHome/working/conf/LamaConfiguration.xml

    1. Add a new segment under <Segments> for your custom monitor, ensuring that it maps correctly with LAMA's requirements.

Sample XML: Refer here


Note : Attribute name should not be changed
    • MonitorType: This is the name of the custom monitor created in Step 1.

    • Attribute values: These should correspond to the attributes set in the custom monitor type.

4. Reload Configuration  

  • Objective: Apply the new configurations to LAMA.

    1. Applications Manager Settings -> Add-on Settings (under Product Settings).

    2. Reload the "LamaConfiguration.xml" using the reload option available in LAMA Integration Card

5. Add Monitors to the LAMA Monitor Group  

  • Objective: Associate the monitors with the LAMA monitor group for data integration.

    • Add the newly created monitors to the Monitor Group specified in the configuration XML.

      • The applicationGroupName in the XML should match the group you are adding the monitors to. For example: applicationGroupName="LAMA_APP".

    • Once added to the group, the data will be collected and pushed to LAMA automatically.