score:0

you should only need the newrelic.jar and newrelic.yml files to be accessible and have -javaagent:path/to/newrelic.jar passed to the jvm as an argument. you could try putting both newrelic.jar and newrelic.yml into your lib/ directory so they get copied to the job & task managers, then adding this to your conf/flink-conf.yaml:

env.java.opts: -javaagent:lib/newrelic.jar

both new relic files should be in the same directory and you ought to be able to remove the new relic line from your build.sbt file. also double check that your license key is in the newrelic.yml file.

i haven't tested this but the main goal is for the .yml and .jar to be accessible in the same directory(the yml can go into a different directory but other jvm arguments will need to be passed to reference it) and to pass -javaagent:path/to/newrelic.jar to as a jvm argument. if you run into issues try checking for new relic logs in the log folder of the directory where the .jar is located.


Related Query

More Query from same tag