diff --git a/base-values/infra-tracing.yaml b/base-values/infra-tracing.yaml new file mode 100644 index 0000000..e2e6128 --- /dev/null +++ b/base-values/infra-tracing.yaml @@ -0,0 +1,9 @@ +commons: + tracing: + enabled: true + http: + endpoint: "http://tempo.monitoring.svc:4318/v1/traces" + grpc: + enabled: true + insecure: true + endpoint: "tempo.monitoring.svc:4317" diff --git a/infra-ingress/templates/traefik/release.yaml b/infra-ingress/templates/traefik/release.yaml index a0b1fd0..4d66eae 100644 --- a/infra-ingress/templates/traefik/release.yaml +++ b/infra-ingress/templates/traefik/release.yaml @@ -120,4 +120,19 @@ spec: additionalLabels: {{- toYaml $.Values.commons.prometheus.monitor.labels | nindent 12 }} {{- end }} + {{- if .Values.commons.tracing.enabled }} + tracing: + otlp: + enabled: true + {{- if .Values.commons.tracing.grpc.enabled }} + grpc: + enabled: true + insecure: {{ .Values.commons.tracing.grpc.insecure }} + endpoint: {{ .Values.commons.tracing.grpc.endpoint }} + {{- else }} + http: + enabled: true + endpoint: {{ .Values.commons.tracing.http.endpoint }} + {{- end }} + {{- end }} {{- end }} diff --git a/infra-ingress/values.yaml b/infra-ingress/values.yaml index a8d72c4..c7d6304 100644 --- a/infra-ingress/values.yaml +++ b/infra-ingress/values.yaml @@ -28,6 +28,24 @@ commons: # -- labels on Pod- and Service-Monitor # @section -- Commons Monitoring labels: {} + tracing: + # -- enable tracing on all components + # @section -- Commons Tracing + enabled: false + http: + # -- http endpoint + # @section -- Commons Tracing + endpoint: "http://tempo.monitoring.svc:4318/v1/traces" + grpc: + # -- prefer grpc over http + # @section -- Commons Tracing + enabled: true + # -- allow insecure connection per grpc + # @section -- Commons Tracing + insecure: true + # -- grpc endpoint + # @section -- Commons Tracing + endpoint: "tempo.monitoring.svc:4317" controller: "traefik" hostNetwork: true