Skip to content

Commit

Permalink
add profiler to kiali server (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored Feb 7, 2024
1 parent e750fe6 commit 5f9162d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crd-docs/cr/kiali.io_v1alpha1_kiali.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ spec:
skip_verify: false
tls_enabled: false
port: 20001
profiler:
enabled: false
web_fqdn: ""
web_history_mode: ""
web_port: ""
Expand Down
7 changes: 7 additions & 0 deletions crd-docs/crd/kiali.io_kialis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,13 @@ spec:
port:
description: "The port that the server will bind to in order to receive console and API requests."
type: integer
profiler:
description: "Controls the internal profiler used to debug the internals of Kiali"
type: object
properties:
enabled:
description: "When 'true', the profiler will be enabled and accessible at /debug/pprof/ on the Kiali endpoint."
type: boolean
web_fqdn:
description: "Defines the public domain where Kiali is being served. This is the 'domain' part of the URL (usually it's a fully-qualified domain name). For example, `kiali.example.org`. When empty, Kiali will try to guess this value from HTTP headers. On non-OpenShift clusters, you must populate this value if you want to enable cross-linking between Kiali instances in a multi-cluster setup."
type: string
Expand Down
4 changes: 4 additions & 0 deletions deploy/kiali/kiali_cr_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ spec:
service_type: $SERVICE_TYPE
logger:
log_level: info

server:
profiler:
enabled: true
2 changes: 2 additions & 0 deletions roles/default/kiali-deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ kiali_defaults:
skip_verify: false
tls_enabled: false
port: 20001
profiler:
enabled: false
web_fqdn: ""
web_history_mode: ""
web_port: ""
Expand Down

0 comments on commit 5f9162d

Please sign in to comment.