diff --git a/rust/helm/optics-agent/templates/configmap.yaml b/rust/helm/optics-agent/templates/configmap.yaml index 6aa3d3b83..761461b16 100644 --- a/rust/helm/optics-agent/templates/configmap.yaml +++ b/rust/helm/optics-agent/templates/configmap.yaml @@ -32,3 +32,4 @@ data: {{- if .Values.optics.tracing.uri }} OPT_BASE_TRACING_JAEGER_COLLECTOR_URI: {{ .Values.optics.tracing.uri }} {{- end }} + OPT_BASE_METRICS: {{ .Values.optics.metrics.port | quote }} diff --git a/rust/helm/optics-agent/templates/kathy-statefulset.yaml b/rust/helm/optics-agent/templates/kathy-statefulset.yaml index d8089d5d6..c4b86628b 100644 --- a/rust/helm/optics-agent/templates/kathy-statefulset.yaml +++ b/rust/helm/optics-agent/templates/kathy-statefulset.yaml @@ -77,6 +77,9 @@ spec: volumeMounts: - name: state mountPath: {{ .Values.optics.dbPath }} + ports: + - name: metrics + containerPort: {{ .Values.optics.metrics.port }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/rust/helm/optics-agent/templates/processor-statefulset.yaml b/rust/helm/optics-agent/templates/processor-statefulset.yaml index f6e6dc323..8671c19b1 100644 --- a/rust/helm/optics-agent/templates/processor-statefulset.yaml +++ b/rust/helm/optics-agent/templates/processor-statefulset.yaml @@ -77,6 +77,9 @@ spec: volumeMounts: - name: state mountPath: {{ .Values.optics.dbPath }} + ports: + - name: metrics + containerPort: {{ .Values.optics.metrics.port }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/rust/helm/optics-agent/templates/relayer-statefulset.yaml b/rust/helm/optics-agent/templates/relayer-statefulset.yaml index 5bae3d59e..eb95195e7 100644 --- a/rust/helm/optics-agent/templates/relayer-statefulset.yaml +++ b/rust/helm/optics-agent/templates/relayer-statefulset.yaml @@ -77,6 +77,9 @@ spec: volumeMounts: - name: state mountPath: {{ .Values.optics.dbPath }} + ports: + - name: metrics + containerPort: {{ .Values.optics.metrics.port }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/rust/helm/optics-agent/templates/updater-statefulset.yaml b/rust/helm/optics-agent/templates/updater-statefulset.yaml index aa622c0df..16211af25 100644 --- a/rust/helm/optics-agent/templates/updater-statefulset.yaml +++ b/rust/helm/optics-agent/templates/updater-statefulset.yaml @@ -92,6 +92,9 @@ spec: volumeMounts: - name: state mountPath: {{ .Values.optics.dbPath }} + ports: + - name: metrics + containerPort: {{ .Values.optics.metrics.port }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/rust/helm/optics-agent/values.yaml b/rust/helm/optics-agent/values.yaml index af48d5fe5..2fd829dcf 100644 --- a/rust/helm/optics-agent/values.yaml +++ b/rust/helm/optics-agent/values.yaml @@ -38,6 +38,8 @@ optics: # Set the log level level: info uri: "" + metrics: + port: 9090 homeChain: name: "kovan" # -- The contract address for the home contract