Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into liliya.belaus/apm-kpi…
Browse files Browse the repository at this point in the history
…-envvars
  • Loading branch information
liliyadd committed Dec 8, 2023
2 parents 6abb853 + c9fdd3f commit 403e8eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
8 changes: 8 additions & 0 deletions charts/datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

Add env variables to support APM Telemetry KPIs

## 3.49.7

Fix NOTES warning for APM Instrumentation

## 3.49.6

Get rid of the old GODEBUG=x509ignoreCN=0 hack that is not effective anymore in lastest versions of the agent.

## 3.49.5

Fix registry selection with GKE Autopilot until new registries are allowed.
Expand Down
14 changes: 7 additions & 7 deletions charts/datadog/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ Trace Agent liveness probe port ({{ $liveness.port }}) is different from the con
The Datadog Agent is listening on port {{ $apmPort }} for APM service.
{{- end }}

{{- if and .Values.datadog.apm.instrumentation.enabled_namespaces .Values.datadog.apm.instrumentation.disabled_namespaces }}
{{- if and .Values.datadog.apm.instrumentation.enabledNamespaces .Values.datadog.apm.instrumentation.disabledNamespaces }}

###################################################################################
#### ERROR: APM Single Step Instrumentation misconfiguration ####
###################################################################################

{{- fail "The options `datadog.apm.instrumentation.enabled_namespaces` and `datadog.apm.instrumentation.disabled_namespaces` cannot be set together." }}
{{- fail "The options `datadog.apm.instrumentation.enabledNamespaces` and `datadog.apm.instrumentation.disabledNamespaces` cannot be set together." }}

{{- end }}

Expand Down Expand Up @@ -161,28 +161,28 @@ The Datadog Agent is listening on port {{ $apmPort }} for APM service.
#### WARNING: Configuration notice ####
#################################################################

You are using datadog.apm.instrumentation.enabled_namespaces but you disabled the cluster agent. This configuration is unsupported and Kubernetes resource monitoring has been turned off.
You are using datadog.apm.instrumentation.enabledNamespaces but you disabled the cluster agent. This configuration is unsupported and Kubernetes resource monitoring has been turned off.
To enable it please set clusterAgent.enabled to 'true'.
{{- end }}

{{- if and .Values.datadog.apm.instrumentation.enabled .Values.datadog.apm.instrumentation.enabled_namespaces }}
{{- if and .Values.datadog.apm.instrumentation.enabled .Values.datadog.apm.instrumentation.enabledNamespaces }}

#################################################################
#### WARNING: Configuration notice ####
#################################################################

The options `datadog.apm.instrumentation.enabled` and `datadog.apm.instrumentation.enabled_namespaces` are set together.
The options `datadog.apm.instrumentation.enabled` and `datadog.apm.instrumentation.enabledNamespaces` are set together.
APM Single Step Instrumentation will be enabled in the whole cluster.

{{- end }}

{{- if and .Values.datadog.apm.instrumentation.disabled_namespaces (not .Values.datadog.apm.instrumentation.enabled) }}
{{- if and .Values.datadog.apm.instrumentation.disabledNamespaces (not .Values.datadog.apm.instrumentation.enabled) }}

#################################################################
#### WARNING: Configuration notice ####
#################################################################

The option `datadog.apm.instrumentation.disabled_namespaces` is set while `datadog.apm.instrumentation.enabled` is disabled.
The option `datadog.apm.instrumentation.disabledNamespaces` is set while `datadog.apm.instrumentation.enabled` is disabled.
APM Single Step Instrumentation will be disabled in the whole cluster.

{{- end }}
Expand Down
3 changes: 0 additions & 3 deletions charts/datadog/templates/_containers-common-env.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# The purpose of this template is to define a minimal set of environment
# variables required to operate dedicated containers in the daemonset
{{- define "containers-common-env" -}}
# Needs to be removed when Agent N-2 is built with Golang 1.17
- name: GODEBUG
value: x509ignoreCN=0
- name: DD_API_KEY
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 403e8eb

Please sign in to comment.