diff --git a/overlays/otel/patches/otel-patch.yaml b/overlays/otel/patches/otel-patch.yaml new file mode 100644 index 0000000..ac6961d --- /dev/null +++ b/overlays/otel/patches/otel-patch.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: redis-cart +spec: + template: + metadata: + annotations: + instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation + spec: + containers: + - name: redis + env: + - name: OTEL_SERVICE_NAME + value: redis-cart + - name: OTEL_EXPORTER_OTLP_ENDPOINT + value: http://otel-collector.monitoring.svc.cluster.local:4318 + - name: OTEL_RESOURCE_ATTRIBUTES + value: app=online-boutique