Skip to content

Commit 46eb61e

Browse files
jyanadichaptersix
andauthored
Add DD_SITE env var to Helm deployment template (#96)
## What was changed Added missing DD_SITE env var to the promql-to-dd-go Helm template ## Why? Metrics are being sent to the default Datadog site but our org is on a non-default site 1. Closes #95 2. How was this tested: I deployed the resulting chart using ArgoCD and the metrics are properly forwarded to the configured DD site --------- Co-authored-by: Alex Stanfield <[email protected]>
1 parent 8c9d522 commit 46eb61e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cloud/observability/promql-to-dd-go/helm-charts/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
secretKeyRef:
3737
name: {{ template "promql-to-dd-go.name" . }}-secrets
3838
key: dd_api_key
39+
{{- with .Values.dd_site }}
40+
- name: DD_SITE
41+
value: {{ . }}
42+
{{- end }}
3943
volumeMounts:
4044
- name: secrets
4145
mountPath: /var/run/secrets

cloud/observability/promql-to-dd-go/helm-charts/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ image:
77
tag: latest
88
imagePullPolicy: Always
99
query_interval_seconds: 15
10+
dd_site: ""

0 commit comments

Comments
 (0)