diff --git a/graph-node-alternate/base/graph-node.yaml b/graph-node-alternate/base/graph-node.yaml index 3adde00..947edb0 100644 --- a/graph-node-alternate/base/graph-node.yaml +++ b/graph-node-alternate/base/graph-node.yaml @@ -20,6 +20,10 @@ spec: port: 8020 protocol: TCP targetPort: 8020 + - name: health + port: 8030 + protocol: TCP + targetPort: 8030 selector: app.kubernetes.io/name: persistencecore-graph-node --- diff --git a/graph-node-alternate/base/scripts/init-firehose-node.sh b/graph-node-alternate/base/scripts/init-firehose-node.sh index d9c4762..90e0746 100644 --- a/graph-node-alternate/base/scripts/init-firehose-node.sh +++ b/graph-node-alternate/base/scripts/init-firehose-node.sh @@ -52,6 +52,7 @@ else sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/g' $HOME_DIR/config/config.toml sed -i 's/timeout_propose = "3s"/timeout_propose = "1s"/g' $HOME_DIR/config/config.toml sed -i 's/index_all_keys = false/index_all_keys = true/g' $HOME_DIR/config/config.toml + sed -i 's/prometheus = false/prometheus = true/g' $HOME_DIR/config/config.toml # replace seeds if the variable is not empty if [ ! -z "$SEEDS" ]; then diff --git a/graph-node-alternate/overlays/multi-pod/firehose-firehose.yaml b/graph-node-alternate/overlays/multi-pod/firehose-firehose.yaml index 6f7bc0e..7929bfe 100644 --- a/graph-node-alternate/overlays/multi-pod/firehose-firehose.yaml +++ b/graph-node-alternate/overlays/multi-pod/firehose-firehose.yaml @@ -12,6 +12,10 @@ spec: port: 9030 protocol: TCP targetPort: 9030 + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose diff --git a/graph-node-alternate/overlays/multi-pod/firehose-merger.yaml b/graph-node-alternate/overlays/multi-pod/firehose-merger.yaml index e6c7963..785fc84 100644 --- a/graph-node-alternate/overlays/multi-pod/firehose-merger.yaml +++ b/graph-node-alternate/overlays/multi-pod/firehose-merger.yaml @@ -7,6 +7,11 @@ metadata: app.kubernetes.io/name: persistencecore-firehose-merger spec: clusterIP: None + ports: + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose-merger --- diff --git a/graph-node-alternate/overlays/multi-pod/firehose-reader.yaml b/graph-node-alternate/overlays/multi-pod/firehose-reader.yaml index a116114..74816db 100644 --- a/graph-node-alternate/overlays/multi-pod/firehose-reader.yaml +++ b/graph-node-alternate/overlays/multi-pod/firehose-reader.yaml @@ -12,6 +12,14 @@ spec: port: 9000 protocol: TCP targetPort: 9000 + - name: prometheus-node + port: 26660 + protocol: TCP + targetPort: 26660 + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose-reader --- diff --git a/graph-node-alternate/overlays/multi-pod/firehose-relayer.yaml b/graph-node-alternate/overlays/multi-pod/firehose-relayer.yaml index 7d797b2..51484ca 100644 --- a/graph-node-alternate/overlays/multi-pod/firehose-relayer.yaml +++ b/graph-node-alternate/overlays/multi-pod/firehose-relayer.yaml @@ -12,6 +12,10 @@ spec: port: 9010 protocol: TCP targetPort: 9010 + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose-relayer diff --git a/graph-node-alternate/overlays/one-pod/firehose.yaml b/graph-node-alternate/overlays/one-pod/firehose.yaml index 596cd96..ea7c559 100644 --- a/graph-node-alternate/overlays/one-pod/firehose.yaml +++ b/graph-node-alternate/overlays/one-pod/firehose.yaml @@ -12,6 +12,14 @@ spec: port: 9030 protocol: TCP targetPort: 9030 + - name: prometheus-node + port: 26660 + protocol: TCP + targetPort: 26660 + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose ---