I have integrated new relic APM with my nodeJS application which is running inside a docker container and I want track only APM and not docker container.
Things I have done for this :
- Install newrelic 4.10.0 npm module using command “npm install newrelic”
- Copied newrelic.js from node_modules to root dir
- added “require(‘newrelic’)” as first line of index.js
- Store NEW_RELIC_APP_NAME, NEW_RELIC_LICENSE_KEY and NEW_RELIC_NO_CONFIG_FILE variables in docker-compose and used them in newrelic.js.
After doing above steps, my app_name is showing in the APM application list and when I click on that hostname is also visible, but I am not getting any other data.
I am not getting this issue for non-docker applications.
Please can someone help me out.