[stable/datadog] allow dogstatsd port to be variable (#18966)

* [stable/datadog] allow dogstatsd port to be variable

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* need to uncomment customAgentConfig

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* leave dogstatsd port empty in values.yaml

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* spacing for comments

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* need to leave dogstatsd_port uncommented

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* taking feedback, moving var around

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* fixing camelCase, and adding env var for statsd

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* bumping version with sign off

Signed-off-by: John Pekcan <johnpekcan@gmail.com>

* relocating the param in readme

Signed-off-by: John Pekcan <johnpekcan@gmail.com>
This commit is contained in:
John Pekcan
2019-12-18 09:05:57 -08:00
committed by Kubernetes Prow Robot
parent b4ac7ad5ca
commit 9934b8ff41
7 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 1.38.14
version: 1.38.15
appVersion: "6"
description: DataDog Agent
keywords:
+1
View File
@@ -271,6 +271,7 @@ helm install --name <RELEASE_NAME> \
| `datadog.nonLocalTraffic` | Enable statsd reporting and APM from any external ip | `False` |
| `datadog.useCriSocketVolume` | Enable mounting the container runtime socket in Agent containers | `True` |
| `datadog.dogstatsdOriginDetection` | Enable origin detection for container tagging | `False` |
| `datadog.dogStatsDPort` | Used to override the default agent DogStatsD Port | `8125` |
| `datadog.useDogStatsDSocketVolume` | Enable dogstatsd over Unix Domain Socket | `False` |
| `datadog.dogStatsDSocketPath` | Custom path to the socket, has to be located in the `/var/run/datadog` folder path | `/var/run/datadog/dsd.socket` |
| `datadog.volumes` | Additional volumes for the daemonset or deployment | `nil` |
@@ -6,9 +6,9 @@
resources:
{{ toYaml .Values.daemonset.containers.agent.resources | indent 4 }}
ports:
- containerPort: 8125
- containerPort: {{ default 8125 .Values.datadog.dogStatsDPort }}
{{- if .Values.daemonset.useHostPort }}
hostPort: 8125
hostPort: {{ default 8125 .Values.datadog.dogStatsDPort }}
{{- end }}
name: dogstatsdport
protocol: UDP
@@ -33,6 +33,10 @@
- name: DD_LOG_LEVEL
value: {{ .Values.daemonset.containers.agent.logLevel | default .Values.datadog.logLevel | quote }}
{{- end }}
{{- if .Values.datadog.dogStatsDPort }}
- name: DD_DOGSTATD_PORT
value: {{ .Values.datadog.dogStatsDPort | quote }}
{{- end }}
{{- if .Values.datadog.nonLocalTraffic }}
- name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC
value: {{ .Values.datadog.nonLocalTraffic | quote }}
@@ -5,9 +5,9 @@
resources:
{{ toYaml .Values.datadog.resources | indent 4 }}
ports:
- containerPort: 8125
- containerPort: {{ default 8125 .Values.datadog.dogStatsDPort }}
{{- if .Values.daemonset.useHostPort }}
hostPort: 8125
hostPort: {{ default 8125 .Values.datadog.dogStatsDPort }}
{{- end }}
name: dogstatsdport
protocol: UDP
@@ -44,6 +44,10 @@
- name: DD_LOG_LEVEL
value: {{ .Values.datadog.logLevel | quote }}
{{- end }}
{{- if .Values.datadog.dogStatsDPort }}
- name: DD_DOGSTATD_PORT
value: {{ .Values.datadog.dogStatsDPort | quote }}
{{- end }}
{{- if .Values.datadog.nonLocalTraffic }}
- name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC
value: {{ .Values.datadog.nonLocalTraffic | quote }}
+1 -1
View File
@@ -55,7 +55,7 @@ spec:
resources:
{{ toYaml .Values.datadog.resources | indent 10 }}
ports:
- containerPort: 8125
- containerPort: {{ default 8125 .Values.datadog.dogStatsDPort }}
name: dogstatsdport
protocol: UDP
{{- if .Values.datadog.apmEnabled }}
+1 -1
View File
@@ -23,7 +23,7 @@ spec:
app: {{ template "datadog.fullname" . }}
type: deployment
ports:
- port: 8125
- port: {{ default 8125 .Values.datadog.dogStatsDPort }}
name: dogstatsdport
protocol: UDP
{{- if .Values.deployment.dogstatsdNodePort }}
+6
View File
@@ -154,6 +154,12 @@ datadog:
#
# useDogStatsDSocketVolume: true
# # dogStatsDPort - integer - optional - default: 8125
# # Override the Agent DogStatsD port.
# # Note: Make sure your client is sending to the same UDP port.
#
# dogStatsDPort:
## @param nonLocalTraffic - boolean - optional - default: false
## Enable this to make each node accept non-local statsd traffic.
## ref: https://github.com/DataDog/docker-dd-agent#environment-variables