简体   繁体   English

NewRelic没有来自Docker Mule 3.8.0的数据报告

[英]NewRelic no data reporting from docker mule 3.8.0

I added this configuration in wrapper.conf in mule and I run a docker script that up mule, and it works: 我在mule的wrapper.conf中添加了此配置,并运行了一个使mule生效的docker脚本,它可以正常工作:

wrapper.java.additional.4=-javaagent:/opt/newrelic/newrelic.jar
wrapper.java.additional.5=-Dnewrelic.config.app_name=mule

But if I remove that configuration from wrapper.conf and I start the mule container with this script: 但是,如果我从wrapper.conf中删除该配置,并使用以下脚本启动start子容器:

    JAVA_OPTS="-javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.app_name=mule_container"

docker run -d --name mule_container -e NEWRELIC_HOME=/opt/newrelic -e CONTAINER_NAME=mule_container -e JAVA_OPTS="$JAVA_OPTS" mule_image

It fails and I don´t see anything in newRelic. 它失败了,我在newRelic中看不到任何东西。 NewRelic say "No data reporting for this application " NewRelic说“此应用程序无数据报告”

Do you know why? 你知道为什么吗? I would like to have all the newRelic configuration in the docker script. 我想在docker脚本中拥有所有newRelic配置。 Thanks. 谢谢。

JAVA_OPTS is an environment variable used by Tomcat and perhaps other Java applications to pass Java arguments. JAVA_OPTS是Tomcat和其他Java应用程序用来传递Java参数的环境变量。 Mule ignores it so that would explain why only setting the properties in wrapper.conf works. Mule忽略了它,因此可以解释为什么仅在wrapper.conf中设置属性才有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM