AWS Lambda outbound mParticle integration to New Relic.
mParticle Firehose Listener -> LogStreamHandler (Lambda) -> SQS FIFO Queue -> MessageProcessor (SQS Listener) -> Insights (New Relic)
NOTE:
- The code must run in an AWS Region that supports SQS FIFO queues.
Create an SQS FIFO queue
- Create a new Java Lambda
-
Upload mParticleIntegration.jar
-
Environment variables
Key Value EUInsightsEndpoint insights-collector.eu01.nr-data.net EventBucketName <Your_bucket_name> EventBucketPrefix <Your_bucket_prefix> EventBucketRegion <AWS_Region_Lambda_is_running_in> FifoQueue <Your_FIFO_Queue_Name>.fifo LogLevel <java.util.logging.Level> SaveMessages <true_or_false> USInsightsEndpoint insights-collector.newrelic.com -
Tags
- none required, as desired
-
Basic settings
Description - Runtime <Java_runtime_version> HandlerInfo com.nr.logging.mparticle.LogStreamHandler::handleRequest Memory (MB) 512 Timeout 3min0sec -
Monitoring tools
- none required, as desired
-
VPC
- none required, as needed
-
File system
- none required, as needed
-
Concurrency
- Provisioned concurrency: 5 is a good starting point
-
Asynchronous invocation
Maximum age of event 6h0min0sec Retry attempts 2 Dead-letter queue service none
-
Execution role
At a minimum:
- AmazonSQSFullAccess
- AWSLambdaFullAccess
- AmazonS3FullAccess
- Create a new AWS Java Lambda
-
Upload mParticleIntegration.jar
-
Designer
- Add this Lambda as a trigger to the FIFO Queue created earlier
-
Environment variables
Key Value EUInsightsEndpoint insights-collector.eu01.nr-data.net EventBucketName <Your_bucket_name> EventBucketPrefix <Your_bucket_prefix> EventBucketRegion <AWS_Region_Lambda_is_running_in> FifoQueue <Your_FIFO_Queue_Name>.fifo LogLevel <java.util.logging.Level> SaveMessages <true_or_false> USInsightsEndpoint insights-collector.newrelic.com -
Tags
- none required, as desired
-
Basic settings
Description - Runtime <Java_runtime_version> HandlerInfo com.nr.logging.mparticle.MessageProcessor::handleRequest Memory (MB) 512 Timeout 3min0sec -
Monitoring tools
- none required, as desired
-
VPC
- none required, as needed
-
File system
- none required
-
Concurrency
- none required, as needed
-
Asynchronous invocation
Maximum age of event 6h0min0sec Retry attempts 2 Dead-letter queue service none
-
Execution role
At a minimum:
- AmazonSQSFullAccess
- AWSLambdaFullAccess
- AmazonS3FullAccess
- accountRegion
- insightsInsertKey
- rpmId
- appId
To generate the 3rd party notices file use gradle downloadLicenses
and use one of the resulting files in build/reports/license/
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.
We encourage you to bring your experiences and questions to the Explorers Hub where our community members collaborate on solutions and new ideas.
We encourage your contributions to improve Salesforce Commerce Cloud for New Relic Browser! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
A note about vulnerabilities
As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.
newrelic-mparticle-integration
is licensed under the Apache 2.0 License.
newrelic-mparticle-integration
also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third party notices document.