diff --git a/deployments/helm/templates/deployment.yaml b/deployments/helm/templates/deployment.yaml index 1e8fed4b2d..1dcdbdd49d 100644 --- a/deployments/helm/templates/deployment.yaml +++ b/deployments/helm/templates/deployment.yaml @@ -57,6 +57,9 @@ spec: cpu: {{ .Values.deployment.resources.requests.cpu | quote}} memory: {{ .Values.deployment.resources.requests.memory }} {{- if not .Values.backup.enabled }} + env: + - name: RUST_LOG + value: papyrus=DEBUG args: - --chain_id - {{ .Values.starknet.chainId }} @@ -64,6 +67,8 @@ spec: - {{ .Values.starknet.centralUrl }} - --base_layer.node_url - {{ .Values.base_layer_node_url }} + - --collect_metrics + - {{ .Values.collect_metrics | quote }} {{- if .Values.services }} ports: - containerPort: {{ .Values.services.rpc.port }} diff --git a/deployments/helm/values.yaml b/deployments/helm/values.yaml index 5ecc5da5fa..bb92832b23 100644 --- a/deployments/helm/values.yaml +++ b/deployments/helm/values.yaml @@ -10,6 +10,9 @@ node: # Ethereum node URL. A value for this variable is mandatory. base_layer_node_url: +# If true, metrics will be collected and exposed on the monitoring port. +collect_metrics: true + starknet: chainId: SN_MAIN # possible values: SN_MAIN, SN_GOERLI # feeder-gateway url