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.
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 |.
2. Add Script Monitors to the Custom Monitor Type
Add new monitors under the Custom Monitor Type (e.g., CustomTypeLAMA) that you created.
Specify the path to the output file generated by the script, which contains the data.
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.
Open the LamaConfiguration.xml file located in:
AppManagerHome/working/conf/LamaConfiguration.xml
Add a new segment under <Segments> for your custom monitor, ensuring that it maps correctly with LAMA's requirements.
Sample XML: Refer here
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.
Applications Manager Settings -> Add-on Settings (under Product Settings).
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.