Skip to content

Commit

Permalink
Add .NET auto instrumentation (#64)
Browse files Browse the repository at this point in the history
* Add .NET auto instrumentation to operator

* Add template for building the .net image path

* Use operator 1.5.0

* Update dotnet sdk to v1.1.0
  • Loading branch information
lisguo authored Jul 29, 2024
1 parent 070a81a commit 823f2dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions charts/amazon-cloudwatch-observability/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ Get the current recommended auto instrumentation python image
{{- printf "%s/%s:%s" .Values.manager.autoInstrumentationImage.python.repositoryDomain .Values.manager.autoInstrumentationImage.python.repository .Values.manager.autoInstrumentationImage.python.tag -}}
{{- end -}}

{{/*
Get the current recommended auto instrumentation .net image
*/}}
{{- define "auto-instrumentation-dotnet.image" -}}
{{- printf "%s/%s:%s" .Values.manager.autoInstrumentationImage.dotnet.repositoryDomain .Values.manager.autoInstrumentationImage.dotnet.repository .Values.manager.autoInstrumentationImage.dotnet.tag -}}
{{- end -}}

{{/*
Common labels
*/}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
- {{ printf "--auto-annotation-config=%s" (.Values.manager.autoAnnotateAutoInstrumentation | toJson) | quote }}
- "--auto-instrumentation-java-image={{ template "auto-instrumentation-java.image" . }}"
- "--auto-instrumentation-python-image={{ template "auto-instrumentation-python.image" . }}"
- "--auto-instrumentation-dotnet-image={{ template "auto-instrumentation-dotnet.image" . }}"
- "--feature-gates=operator.autoinstrumentation.multi-instrumentation,operator.autoinstrumentation.multi-instrumentation.skip-container-validation"
command:
- /manager
Expand Down
14 changes: 10 additions & 4 deletions charts/amazon-cloudwatch-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ replicaCount: 1
##
nameOverride: ""

## Reference one or more secrets to be used when pulling images from authenticated repositories.
imagePullSecrets: [ ]

## Provide the ClusterName (this is a required parameter)
clusterName:

Expand Down Expand Up @@ -401,7 +398,7 @@ manager:
name:
image:
repository: cloudwatch-agent-operator
tag: 1.4.1
tag: 1.5.0
repositoryDomainMap:
public: public.ecr.aws/cloudwatch-agent
cn-north-1: 934860584483.dkr.ecr.cn-north-1.amazonaws.com.cn
Expand All @@ -417,6 +414,10 @@ manager:
repositoryDomain: public.ecr.aws/aws-observability
repository: adot-autoinstrumentation-python
tag: v0.3.0
dotnet:
repositoryDomain: public.ecr.aws/aws-observability
repository: adot-autoinstrumentation-dotnet
tag: v1.1.0
autoAnnotateAutoInstrumentation:
java:
namespaces: [ ]
Expand All @@ -428,6 +429,11 @@ manager:
deployments: [ ]
daemonsets: [ ]
statefulsets: [ ]
dotnet:
namespaces: [ ]
deployments: [ ]
daemonsets: [ ]
statefulsets: [ ]
ports:
containerPort: 9443
metricsPort: 8080
Expand Down

0 comments on commit 823f2dc

Please sign in to comment.