gpt4 book ai didi

newrelic - 配置 New Relic,使 newrelic.jar 和 newrelic.yml 不需要并置

转载 作者:行者123 更新时间:2023-12-02 05:03:48 24 4
gpt4 key购买 nike

我的 Java/Mule ESB 应用程序使用了 New Relic 工具。一切都很好(至少在 Eclipse 中运行)。

但是,因为我的 Maven 存储库中已经有 New Relic jar 文件,所以我不想在我的项目中 checkin 另一个版本的 New Relic 代理 jar。来自 what I've read in the New Relic documentation New Relic 代理 jar 和 newrelic.yml 应该在同一目录中,但我想在我的项目中使用 newrelic.yml 并在我的 Maven 存储库中引用 New Relic 代理 jar。

像指定 newrelic.yml 的 JVM 参数(就像它当前与 javaagent 一起使用一样)会很棒。

感谢您的任何建议!

最佳答案

来自 New Relic 支持团队(顺便说一句,快速回复!):

1) You can set the system property newrelic.config.file to the fully qualified path of your newrelic configuration file. The property can be found on the docs site here:https://newrelic.com/docs/java/java-agent-configuration#System_Properties

2) You must have a newrelic.yml configuration file even if you are relying on server-side config.

关于newrelic - 配置 New Relic,使 newrelic.jar 和 newrelic.yml 不需要并置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16573523/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com