From 995097523e5a79b66603a3681d1dd484e7e4a3fa Mon Sep 17 00:00:00 2001 From: Kate Anderson Date: Fri, 8 Nov 2024 10:14:17 -0800 Subject: [PATCH 1/2] Add jvm prop settings to example yml file --- newrelic-agent/src/main/resources/newrelic.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/newrelic-agent/src/main/resources/newrelic.yml b/newrelic-agent/src/main/resources/newrelic.yml index cf5698cdcd..1a5a949d43 100644 --- a/newrelic-agent/src/main/resources/newrelic.yml +++ b/newrelic-agent/src/main/resources/newrelic.yml @@ -356,6 +356,24 @@ common: &default_settings # the regex if you have more complex start head elements (attributes for example). The defined pattern is case-insensitive. tag_lib_head_pattern: '' + # By default, the agent sends JVM input arguments to New Relic, where they are visible as Environment data. + # Set to false to disable the sending of JVM props. + send_jvm_props: true + + # Before sending JVM props to New Relic, the agent will obfuscate all data in a prop after an = sign. + # For example, the property -Dmy.prop=my-value will be sent to New Relic as -Dmy.prop=obfuscated. + # By default, the standard and extended JVM props (those beginning with -X*) are sent unobfuscated. + # Available since agent 8.16.0. + obfuscate_jvm_props: + #To disable this feature, and send all JVM props unobfuscated, set enabled to false. The default is true. + #enabled: true + + # A comma separated list of JVM property names whose values should be sent to New Relic unobfuscated. + #allow: -Dsend.this.prop, -Dsend.this.prop.and.children* + + # A comma separated list of JVM property names whose values should be sent to New Relic obfuscated. + #block: -Dhide.this.prop, -Xthis.one.too + # Class transformer can be used to disable all agent instrumentation or specific instrumentation modules. # All instrumentation modules can be found here: https://github.com/newrelic/newrelic-java-agent/tree/main/instrumentation class_transformer: From a991d6fd921c3b0e0f1cec677c491101212a9157 Mon Sep 17 00:00:00 2001 From: Kate Anderson Date: Fri, 8 Nov 2024 13:45:01 -0800 Subject: [PATCH 2/2] Remove dummy vals from obfuscate jvm in yml --- newrelic-agent/src/main/resources/newrelic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newrelic-agent/src/main/resources/newrelic.yml b/newrelic-agent/src/main/resources/newrelic.yml index 1a5a949d43..3fed01da5c 100644 --- a/newrelic-agent/src/main/resources/newrelic.yml +++ b/newrelic-agent/src/main/resources/newrelic.yml @@ -369,10 +369,10 @@ common: &default_settings #enabled: true # A comma separated list of JVM property names whose values should be sent to New Relic unobfuscated. - #allow: -Dsend.this.prop, -Dsend.this.prop.and.children* + #allow: # A comma separated list of JVM property names whose values should be sent to New Relic obfuscated. - #block: -Dhide.this.prop, -Xthis.one.too + #block: # Class transformer can be used to disable all agent instrumentation or specific instrumentation modules. # All instrumentation modules can be found here: https://github.com/newrelic/newrelic-java-agent/tree/main/instrumentation