Skip to content

Commit

Permalink
[rpc-node] Adding metrics configuration for execution node
Browse files Browse the repository at this point in the history
  • Loading branch information
nzenchik committed Jun 3, 2024
1 parent 21b4554 commit 8cfc702
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/rpc-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions charts/rpc-node/templates/execution-podmonitor.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions charts/rpc-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ execution:
- name: auth-rpc
port: 8551
protocol: TCP
#- name: metrics
# port: 6060
# protocol: TCP
node:
ports:
- name: p2p-tcp
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8cfc702

Please sign in to comment.