Skip to content

Conversation

@avorima
Copy link
Contributor

@avorima avorima commented Nov 18, 2025

Description

Expose pprof endpoint from controller-runtime when enableProfiling=true helm value is set. Value is disabled by default.

How can this be tested?

Deploy and check out profiles.

make deploy
kubectl port-forward -n dynatrace deployment/dynatrace-operator 6060:6060
go tool pprof http://localhost:6060/debug/pprof/profile   # 30-second CPU profile
go tool pprof http://localhost:6060/debug/pprof/heap      # heap profile
go tool pprof http://localhost:6060/debug/pprof/block     # goroutine blocking profile

- name: LOG_LEVEL
value: "debug"
{{- end }}
{{- if .Values.enableProfiling }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if .Values.enableProfiling }}
{{- if .Values.enableGoProfiling }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants