Overview of Integration
- Integrating SAP Leonardo with New Relic enables you to monitor performance and track anomalies in applications managed via SAP Leonardo, using New Relic's advanced observability features.
- Pre-requisites include access to SAP Leonardo, a New Relic account, and the necessary permissions to install monitoring agents.
Prepare Your Environment
- Ensure your SAP Leonardo environment is running smoothly, with relevant data streams ready for monitoring.
- Log into your New Relic account and navigate to the Integrations section to verify your setup for custom monitoring solutions.
Install New Relic Agents
- Choose the appropriate New Relic agent that corresponds to your application's language or platform (e.g., Java, Node.js, Python).
- Follow New Relic's documented instructions for installing the agent, typically involving package installation and configuration changes in your application's code. Ensure the environment variables for license keys and app identifiers are set.
npm install newrelic
Configure New Relic Agent
- Update your application’s configuration file to integrate the New Relic agent, commonly by requiring the module at the entry point of your application.
- Set up New Relic's configuration file (`newrelic.js` or equivalent), inputting necessary information such as application name and license key.
require('newrelic');
Connect SAP Leonardo Log Streams
- Utilize SAP Leonardo's API to direct log and performance data to New Relic. Consider creating middleware or adaptors if no direct pipeline exists.
- Leverage SAP Cloud Platform's integration tools to set up data ingestion from SAP AI, IoT services, or any other Leonardo modules into New Relic.
Set Up Data Visualization and Alerts
- Within New Relic, navigate to the Dashboards section to create custom data visualizations reflecting your SAP Leonardo metrics.
- Establish alert policies for anomaly detection, ensuring critical SAP Leonardo functions trigger notifications in New Relic upon reaching predefined thresholds.
Test the Integration
- Conduct thorough testing by simulating both normal and high-load operations within SAP Leonardo. Observe the data flow into New Relic for accuracy.
- Ensure alerting mechanisms and dashboards reflect real-time data and respond adequately to anomalies.
Maintain Integration Health
- Regularly verify the connection between SAP Leonardo and New Relic, applying updates and patches to both platforms as necessary.
- Review and update data ingestion scripts and New Relic configurations periodically to adapt to changes in application architecture or business requirements.