Skip to content

Commit 02ffe60

Browse files
committed
updating env vars
1 parent f8bb908 commit 02ffe60

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

pkg/instrumentation/defaultinstrumentation.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ func getJavaEnvs(isAppSignalsEnabled bool, cloudwatchAgentServiceEndpoint, expor
160160
if targetSystems, ok := additionalEnvs[jmx.EnvTargetSystem]; ok {
161161
jmxEnvs = []corev1.EnvVar{
162162
{Name: "OTEL_AWS_JMX_EXPORTER_METRICS_ENDPOINT", Value: fmt.Sprintf("%s://%s:4314/v1/metrics", http, cloudwatchAgentServiceEndpoint)},
163-
{Name: "OTEL_AWS_JMX_ENABLED", Value: "true"},
164163
{Name: "OTEL_JMX_TARGET_SYSTEM", Value: targetSystems},
165164
}
166165
}

pkg/instrumentation/defaultinstrumentation_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ func Test_getDefaultInstrumentationLinuxWithApplicationSignalsDisabled(t *testin
789789
{Name: "OTEL_METRICS_EXPORTER", Value: "none"},
790790
{Name: "OTEL_LOGS_EXPORTER", Value: "none"},
791791
{Name: "OTEL_AWS_JMX_EXPORTER_METRICS_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4314/v1/metrics"},
792-
{Name: "OTEL_AWS_JMX_ENABLED", Value: "true"},
793792
{Name: "OTEL_JMX_TARGET_SYSTEM", Value: "jvm"},
794793
},
795794
Resources: corev1.ResourceRequirements{

pkg/instrumentation/podmutator_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,12 @@ func TestGetInstrumentationInstanceJMX(t *testing.T) {
8181
},
8282
},
8383
ns: corev1.Namespace{},
84-
wantLen: 6,
84+
wantLen: 5,
8585
wantEnv: []corev1.EnvVar{
8686
{Name: "OTEL_EXPORTER_OTLP_PROTOCOL", Value: "http/protobuf"},
8787
{Name: "OTEL_METRICS_EXPORTER", Value: "none"},
8888
{Name: "OTEL_LOGS_EXPORTER", Value: "none"},
8989
{Name: "OTEL_AWS_JMX_EXPORTER_METRICS_ENDPOINT", Value: "http://cloudwatch-agent.amazon-cloudwatch:4314/v1/metrics"},
90-
{Name: "OTEL_AWS_JMX_ENABLED", Value: "true"},
9190
{Name: "OTEL_JMX_TARGET_SYSTEM", Value: "jvm,tomcat"},
9291
},
9392
},

0 commit comments

Comments
 (0)