WSO2 New Relic Insight Handler is responsable to extend WSO2 using New Relic API and send information from WSO2 ESB to New Relic Insight. This way we can verify and analyze ESB metrics in New Relic Dashboard.
- Download and install JDK 8 or later
- Get a clone or download the source from this repository (https://github.com/fabcipriano/wso2-algoservice.git)
- Run the Maven command
mvn clean install
from within the wso2-newrelic directory.
- Go to your WSO2 ESB 5.0.0 dir ${WSO2-ESB-HOME}/repository/components/lib directory and copy the
wso2-newrelic-1.1-SNAPSHOT.jar
to this folder (to create this file execute the steps in Building from source section) - Go to your WSO2 ESB 5.0.0 dir ${WSO2-ESB-HOME}/repository/conf and edit the
synapse-handlers.xml
file. See exemple below.:
<handlers>
<!-- Other handlers here -->
<handler name="NewRelicInsightsHandler" class="br.com.facio.wso2.handler.NewRelicInsightsHandler"/>
</handlers>
- Go to your WSO2 ESB 5.0.0 dir ${WSO2-ESB-HOME}/repository/conf and edit the file log4j.properties and add the line below.:
log4j.category.br.com.facio.wso2=DEBUG
- Make sure you stop WSO2 ESB 5.0.0 before install this extension
- After this start you WSO2 ESB execute some transactions and you will see the logs
- Tested with WSO2 ESB 5.0.0
- Dont forget to configure New Relic in your WSO2 5.0.0 enviroment