Skip to content

Commit

Permalink
DEP-2296: Add env variables needed for open telemetry to send metrics…
Browse files Browse the repository at this point in the history
… to jaeger (#134)

* Add env variables needed for open telemetry to send metrics to jaeger

* Version
  • Loading branch information
ella-ktech authored Nov 12, 2024
1 parent f4d541b commit 91e1e6f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/bandstand-cron-job/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: bandstand-cron-job
version: 4.2.3
version: 4.2.4
description: Application chart for a simple cron job
type: application
maintainers:
Expand Down
16 changes: 16 additions & 0 deletions charts/bandstand-cron-job/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ fsGroup: {{ .Values.fsGroup | default 1000 }}
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_SERVICE_NAME
value: {{ .Release.Name }}
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://collector.linkerd-jaeger:4317
- name: OTEL_PROPAGATORS
value: b3multi
- name: OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
value: http://$(DD_AGENT_HOST):4317
- name: OTEL_EXPORTER_OTLP_METRICS_PROTOCOL
value: grpc
- name: OTEL_METRICS_EXPORTER
value: otlp
- name: OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS
value: io.opentelemetry.sdk.extension.resources.HostResourceProvider,io.opentelemetry.sdk.extension.resources.ContainerResourceProvider
- name: OTEL_RESOURCE_ATTRIBUTES
value: host=$(DD_AGENT_HOST),service={{ .Release.Name }},env={{ .Values.global.env }}
- name: AWS_ACCOUNT_ID
value: {{ .Values.global.aws.account | squote }}
{{- end -}}

0 comments on commit 91e1e6f

Please sign in to comment.