From 8cfc702260c1f2199f7f295464300f0d38f5880d Mon Sep 17 00:00:00 2001 From: Nick Zenchik Date: Mon, 3 Jun 2024 16:12:42 +0400 Subject: [PATCH] [rpc-node] Adding metrics configuration for execution node --- charts/rpc-node/Chart.yaml | 2 +- .../rpc-node/templates/execution-podmonitor.yaml | 15 +++++++++++++++ charts/rpc-node/values.yaml | 11 +++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 charts/rpc-node/templates/execution-podmonitor.yaml diff --git a/charts/rpc-node/Chart.yaml b/charts/rpc-node/Chart.yaml index 9af0553..d52d427 100644 --- a/charts/rpc-node/Chart.yaml +++ b/charts/rpc-node/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.1 +version: 0.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/rpc-node/templates/execution-podmonitor.yaml b/charts/rpc-node/templates/execution-podmonitor.yaml new file mode 100644 index 0000000..c315989 --- /dev/null +++ b/charts/rpc-node/templates/execution-podmonitor.yaml @@ -0,0 +1,15 @@ +{{- if and .Values.execution.prometheus.enabled }} +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: {{ include "rpc-node.fullname" . }}-execution-podmonitor + labels: + {{- include "rpc-node.labels" . | nindent 4 }} +spec: + podMetricsEndpoints: + - port: {{ .Values.execution.prometheus.port }} + path: {{ .Values.execution.prometheus.path }} + selector: + matchLabels: + app: {{ .Release.Name }}-execution +{{- end }} diff --git a/charts/rpc-node/values.yaml b/charts/rpc-node/values.yaml index ab2234c..355e1c0 100644 --- a/charts/rpc-node/values.yaml +++ b/charts/rpc-node/values.yaml @@ -60,6 +60,9 @@ execution: - name: auth-rpc port: 8551 protocol: TCP + #- name: metrics + # port: 6060 + # protocol: TCP node: ports: - name: p2p-tcp @@ -96,6 +99,9 @@ execution: - --http.api="eth,debug,net,trace,txpool,web3,erigon" - --ws - --ws.compression + #- --metrics + #- --metrics.addr=0.0.0.0 + #- --metrics.port=6060 env: [] # NAME: VALUE @@ -129,6 +135,11 @@ execution: periodSeconds: 30 timeoutSeconds: 15 + prometheus: + enabled: false + port: metrics + path: /debug/metrics/prometheus + # Additional volumes on the output Deployment definition. volumes: [] # - name: foo