Closed jtheuer closed 3 years ago
Yes, skip the regular Boxfuse support for New Relic and use it as a regular Java Agent. See https://boxfuse.com/docs/payloads/springboot#javaagents
I tried a couple of variants but without success. I must be missing a point here. I commented out the line in my config file:
# newrelic agent
#components.newrelic-java=3.41.0
and tried to run boxfuse locally:
> boxfuse run -env=dev
Boxfuse client v.1.29.1.1400
ERROR: Invalid NewRelic license key: SET_DURING_DEPLOYMENT => ensure it is at least 40 chars long and only contains a-f (lowercase) and 0-9
so I added the necessary information:
boxfuse run -env=dev -envvars.NEW_RELIC_LICENSE_KEY=... -newrelic.licensekey=...
This however /seems/ to enable the default newrelic agent:
vb-ea349e57 -> BOXFUSE_COMPONENTS_NEWRELIC_JAVA=3.38.0
vb-ea349e57 -> BOXFUSE_COMPONENTS_NEWRELIC_SYSMOND=2.3.0.132
vb-ea349e57 -> /jre/bin/java -javaagent:/newrelic/newrelic/newrelic.jar -Dnewrelic.config.file=/newrelic/newrelic.yml ...
vb-ea349e57 -> Oct 2, 2017 14:32:29 +0000 [698 1] com.newrelic INFO: New Relic Agent: Loading configuration file "/newrelic/newrelic.yml"
vb-ea349e57 -> Oct 2, 2017 14:32:29 +0000 [698 1] com.newrelic INFO: Agent Host: vb-ea349e57 IP: 127.0.0.1
vb-ea349e57 -> Oct 2, 2017 14:32:29 +0000 [698 1] com.newrelic INFO: New Relic Agent v3.38.0 is initializing...
I don't know what version number the agent has that I got from NewRelic but I don't have a custom newrelic.yml for example. Also, the set environment variables look like the default newrelic is used.
What did I miss?
Update: We've fixed our NewRelic issue already / can't confirm if this is a boxfuse issue or a problem in our config.
I got a custom newrelic jar file from support to debug an issue we have - is there a way to use it?