Skip to content

Commit 34b6e0b

Browse files
authored
feat(charts/xatu): add pprof port (ethpandaops#160)
* feat(charts/xatu-discovery): pprof support * feat(charts/xatu-mimicry): pprof support * feat(charts/xatu-sentry): pprof support * feat(charts/xatu-server): pprof support
1 parent 7f1895e commit 34b6e0b

20 files changed

+78
-10
lines changed

charts/xatu-discovery/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-discovery
33
description: Ethereum p2p monitoring tool that discovers node records.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.3
6+
version: 0.0.4
77
maintainers:
88
- name: samcm
99

charts/xatu-discovery/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-discovery
33

4-
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that discovers node records.
77

charts/xatu-discovery/templates/_helpers.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ Create the name of the service account to use
6464
{{- define "xatu-discovery.metricsPort" -}}
6565
{{ (split ":" .Values.config.metricsAddr)._1 | default ":9090" }}
6666
{{- end -}}
67+
68+
{{- define "xatu-discovery.pprofPort" -}}
69+
{{- if .Values.config.pprofAddr -}}
70+
{{ (split ":" .Values.config.pprofAddr)._1 | default "6060" }}
71+
{{- end -}}
72+
{{- end -}}

charts/xatu-discovery/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ spec:
7272
- name: metrics
7373
containerPort: {{ include "xatu-discovery.metricsPort" . }}
7474
protocol: TCP
75+
{{- if (include "xatu-discovery.pprofPort" .) }}
76+
- name: pprof
77+
containerPort: {{ include "xatu-discovery.pprofPort" . }}
78+
protocol: TCP
79+
{{- end }}
7580
livenessProbe:
7681
{{- toYaml .Values.livenessProbe | nindent 12 }}
7782
readinessProbe:

charts/xatu-discovery/templates/service.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ spec:
1111
targetPort: metrics
1212
protocol: TCP
1313
name: metrics
14+
{{- if (include "xatu-discovery.pprofPort" .) }}
15+
- port: {{ include "xatu-discovery.pprofPort" . }}
16+
targetPort: pprof
17+
protocol: TCP
18+
name: pprof
19+
{{- end }}
1420
{{- if .Values.extraPorts }}
1521
{{ toYaml .Values.extraPorts | nindent 4}}
1622
{{- end }}

charts/xatu-mimicry/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-mimicry
33
description: Ethereum p2p monitoring tool that collects data from the execution layer.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.3
6+
version: 0.0.4
77
maintainers:
88
- name: samcm
99

charts/xatu-mimicry/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-mimicry
33

4-
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that collects data from the execution layer.
77

charts/xatu-mimicry/templates/_helpers.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ Create the name of the service account to use
6464
{{- define "xatu-mimicry.metricsPort" -}}
6565
{{ (split ":" .Values.config.metricsAddr)._1 | default ":9090" }}
6666
{{- end -}}
67+
68+
{{- define "xatu-mimicry.pprofPort" -}}
69+
{{- if .Values.config.pprofAddr -}}
70+
{{ (split ":" .Values.config.pprofAddr)._1 | default "6060" }}
71+
{{- end -}}
72+
{{- end -}}

charts/xatu-mimicry/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ spec:
7272
- name: metrics
7373
containerPort: {{ include "xatu-mimicry.metricsPort" . }}
7474
protocol: TCP
75+
{{- if (include "xatu-mimicry.pprofPort" .) }}
76+
- name: pprof
77+
containerPort: {{ include "xatu-mimicry.pprofPort" . }}
78+
protocol: TCP
79+
{{- end }}
7580
livenessProbe:
7681
{{- toYaml .Values.livenessProbe | nindent 12 }}
7782
readinessProbe:

charts/xatu-mimicry/templates/service.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ spec:
1111
targetPort: metrics
1212
protocol: TCP
1313
name: metrics
14+
{{- if (include "xatu-mimicry.pprofPort" .) }}
15+
- port: {{ include "xatu-mimicry.pprofPort" . }}
16+
targetPort: pprof
17+
protocol: TCP
18+
name: pprof
19+
{{- end }}
1420
{{- if .Values.extraPorts }}
1521
{{ toYaml .Values.extraPorts | nindent 4}}
1622
{{- end }}

charts/xatu-sentry/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-sentry
33
description: Ethereum p2p monitoring tool that runs along side a Ethereum consensus client and collects data via the consensus client's Beacon API.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.4
6+
version: 0.0.5
77
maintainers:
88
- name: samcm
99

charts/xatu-sentry/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-sentry
33

4-
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that runs along side a Ethereum consensus client and collects data via the consensus client's Beacon API.
77

charts/xatu-sentry/templates/_helpers.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ Create the name of the service account to use
6464
{{- define "xatu-sentry.metricsPort" -}}
6565
{{ (split ":" .Values.config.metricsAddr)._1 | default ":9090" }}
6666
{{- end -}}
67+
68+
{{- define "xatu-sentry.pprofPort" -}}
69+
{{- if .Values.config.pprofAddr -}}
70+
{{ (split ":" .Values.config.pprofAddr)._1 | default "6060" }}
71+
{{- end -}}
72+
{{- end -}}

charts/xatu-sentry/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ spec:
7272
- name: metrics
7373
containerPort: {{ include "xatu-sentry.metricsPort" . }}
7474
protocol: TCP
75+
{{- if (include "xatu-sentry.pprofPort" .) }}
76+
- name: pprof
77+
containerPort: {{ include "xatu-sentry.pprofPort" . }}
78+
protocol: TCP
79+
{{- end }}
7580
livenessProbe:
7681
{{- toYaml .Values.livenessProbe | nindent 12 }}
7782
readinessProbe:

charts/xatu-sentry/templates/service.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ spec:
1111
targetPort: metrics
1212
protocol: TCP
1313
name: metrics
14+
{{- if (include "xatu-sentry.pprofPort" .) }}
15+
- port: {{ include "xatu-sentry.pprofPort" . }}
16+
targetPort: pprof
17+
protocol: TCP
18+
name: pprof
19+
{{- end }}
1420
{{- if .Values.extraPorts }}
1521
{{ toYaml .Values.extraPorts | nindent 4}}
1622
{{- end }}

charts/xatu-server/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: xatu-server
33
description: Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
44
home: https://github.com/ethpandaops/xatu
55
type: application
6-
version: 0.0.6
6+
version: 0.0.7
77
maintainers:
88
- name: samcm
99

charts/xatu-server/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# xatu-server
33

4-
![Version: 0.0.6](https://img.shields.io/badge/Version-0.0.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.0.7](https://img.shields.io/badge/Version-0.0.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
Ethereum p2p monitoring tool that collects events from and controls various Xatu clients.
77

charts/xatu-server/templates/_helpers.tpl

+8-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ Create the name of the service account to use
6262
{{- end }}
6363

6464
{{- define "xatu-server.httpPort" -}}
65-
{{ (split ":" .Values.config.addr)._1 | default ":8080" }}
65+
{{ (split ":" .Values.config.addr)._1 | default "8080" }}
6666
{{- end }}
6767

6868
{{- define "xatu-server.metricsPort" -}}
69-
{{ (split ":" .Values.config.metricsAddr)._1 | default ":9090" }}
69+
{{ (split ":" .Values.config.metricsAddr)._1 | default "9090" }}
70+
{{- end -}}
71+
72+
{{- define "xatu-server.pprofPort" -}}
73+
{{- if .Values.config.pprofAddr -}}
74+
{{ (split ":" .Values.config.pprofAddr)._1 | default "6060" }}
75+
{{- end -}}
7076
{{- end -}}

charts/xatu-server/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ spec:
7575
- name: metrics
7676
containerPort: {{ include "xatu-server.metricsPort" . }}
7777
protocol: TCP
78+
{{- if (include "xatu-server.pprofPort" .) }}
79+
- name: pprof
80+
containerPort: {{ include "xatu-server.pprofPort" . }}
81+
protocol: TCP
82+
{{- end }}
7883
{{- if .Values.extraPodPorts }}
7984
{{ toYaml .Values.extraPodPorts | nindent 10 }}
8085
{{- end }}

charts/xatu-server/templates/service.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ spec:
1515
targetPort: metrics
1616
protocol: TCP
1717
name: metrics
18+
{{- if (include "xatu-server.pprofPort" .) }}
19+
- port: {{ include "xatu-server.pprofPort" . }}
20+
targetPort: pprof
21+
protocol: TCP
22+
name: pprof
23+
{{- end }}
1824
{{- if .Values.extraPorts }}
1925
{{ toYaml .Values.extraPorts | nindent 4}}
2026
{{- end }}

0 commit comments

Comments
 (0)