-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instrumentation to chart (#1114)
* Add instrumentation to chart * bump version * feedback iteration * optional
- Loading branch information
1 parent
5009834
commit abe4c7d
Showing
7 changed files
with
545 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
charts/opentelemetry-kube-stack/templates/instrumentation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{- if .Values.instrumentation.enabled }} | ||
--- | ||
apiVersion: opentelemetry.io/v1alpha1 | ||
kind: Instrumentation | ||
metadata: | ||
name: {{ include "opentelemetry-kube-stack.instrumentation" . }} | ||
labels: | ||
{{- include "opentelemetry-kube-stack.labels" $ | nindent 4 }} | ||
{{- include "opentelemetry-kube-stack.renderkv" .Values.instrumentation.labels | nindent 4 }} | ||
{{- with .Values.instrumentation.annotations }} | ||
annotations: | ||
{{- include "opentelemetry-kube-stack.renderkv" . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
exporter: | ||
endpoint: {{ .Values.instrumentation.exporter.endpoint }} | ||
propagators: | ||
{{- toYaml .Values.instrumentation.propagators | nindent 4 }} | ||
{{- with .Values.instrumentation.sampler }} | ||
sampler: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
env: | ||
{{- include "opentelemetry-kube-stack.renderenvs" (dict "extraEnvs" $.Values.extraEnvs "env" .Values.instrumentation.env) | nindent 4 }} | ||
{{- with .Values.instrumentation.resource }} | ||
resource: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.instrumentation.java }} | ||
java: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- with .Values.instrumentation.nodejs }} | ||
nodejs: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- with .Values.instrumentation.python }} | ||
python: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- with .Values.instrumentation.dotnet }} | ||
dotnet: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- with .Values.instrumentation.go }} | ||
go: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- with .Values.instrumentation.apacheHttpd }} | ||
apacheHtpd: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.instrumentation.nginx }} | ||
nginx: | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.