88 - //location/gcp-us-west1
99 tracing :
1010 provider :
11- controlplane : {}
12- customTags : {}
11+ otel :
12+ endpoint : ' otel-collector.online-boutique.cpln.local:4317 '
1313 sampling : 100
14-
1514---
1615kind : volumeset
1716name : redis-volume
@@ -797,3 +796,128 @@ spec:
797796 - //workload/frontend
798797 localOptions : []
799798 supportDynamicTags : false
799+ ---
800+
801+ kind : identity
802+ name : otel-collector-online-boutique
803+ tags : {}
804+ ---
805+ kind : secret
806+ name : otel-collector-config
807+ description : otel-collector-config
808+ type : opaque
809+ data :
810+ encoding : plain
811+ payload : |-
812+ receivers:
813+ otlp:
814+ protocols:
815+ grpc:
816+ http:
817+
818+ processors:
819+ filter/httpmetrics:
820+ spans:
821+ exclude:
822+ match_type: strict
823+ attributes:
824+ - key: upstream_cluster.name
825+ value: "inbound|9090||"
826+
827+ batch:
828+ timeout: 5s
829+ send_batch_size: 500
830+
831+ exporters:
832+ datadog:
833+ api:
834+ site: ${DD_SITE}
835+ key: ${DD_API_KEY}
836+
837+ service:
838+ telemetry:
839+ logs:
840+ level: "info"
841+
842+ pipelines:
843+ traces:
844+ receivers: [otlp]
845+ processors: [filter/httpmetrics, batch]
846+ exporters: [datadog]
847+ ---
848+ kind : secret
849+ name : datadog-config
850+ description : datadog-config
851+ tags : {}
852+ type : dictionary
853+ data :
854+ # Do not set DD_API_KEY_VALUE and DD_SITE_VALUE below inside quotation mark
855+ DD_API_KEY : 3872e4353fedc02dcd30bcee2a4b8db2
856+ DD_SITE : us3.datadoghq.com
857+ ---
858+ kind : policy
859+ name : otel-collector-online-boutique
860+ tags : {}
861+ origin : default
862+ bindings :
863+ - permissions :
864+ - reveal
865+ principalLinks :
866+ - //gvc/online-boutique/identity/otel-collector-online-boutique
867+ targetKind : secret
868+ targetLinks :
869+ - //secret/datadog-config
870+ - //secret/otel-collector-config
871+ ---
872+ kind : workload
873+ name : otel-collector
874+ description : otel-collector
875+ spec :
876+ type : standard
877+ containers :
878+ - name : otel-collector
879+ args :
880+ - ' --config=/etc/otel-collector-config.yaml'
881+ cpu : 100m
882+ env :
883+ - name : DD_API_KEY
884+ value : ' cpln://secret/datadog-config.DD_API_KEY'
885+ - name : DD_SITE
886+ value : ' cpln://secret/datadog-config.DD_SITE'
887+ image : ' otel/opentelemetry-collector-contrib:0.83.0'
888+ inheritEnv : false
889+ memory : 200Mi
890+ ports :
891+ - number : 4317
892+ protocol : grpc
893+ - number : 4318
894+ protocol : http
895+ volumes :
896+ - path : /etc/otel-collector-config.yaml
897+ recoveryPolicy : retain
898+ uri : ' cpln://secret/otel-collector-config'
899+ defaultOptions :
900+ autoscaling :
901+ maxConcurrency : 0
902+ maxScale : 1
903+ metric : cpu
904+ minScale : 1
905+ scaleToZeroDelay : 300
906+ target : 95
907+ capacityAI : false
908+ debug : false
909+ suspend : false
910+ timeoutSeconds : 5
911+ firewallConfig :
912+ external :
913+ inboundAllowCIDR : []
914+ outboundAllowCIDR :
915+ - 0.0.0.0/0
916+ outboundAllowHostname : []
917+ outboundAllowPort : []
918+ internal :
919+ inboundAllowType : same-gvc
920+ inboundAllowWorkload : []
921+ identityLink : //identity/otel-collector-online-boutique
922+ localOptions : []
923+ supportDynamicTags : false
0 commit comments