From f8885c9fd71ba6dfe82837a7f87429615b5e581f Mon Sep 17 00:00:00 2001 From: Nabarun Sarkar Date: Wed, 30 Aug 2023 02:37:16 +0530 Subject: [PATCH 1/3] Add metrics ports and config --- graph-node/firehose-node.yaml | 8 ++++++++ graph-node/graph-node.yaml | 4 ++++ graph-node/scripts/init-firehose-node.sh | 1 + 3 files changed, 13 insertions(+) diff --git a/graph-node/firehose-node.yaml b/graph-node/firehose-node.yaml index b45f0a8..26681d6 100644 --- a/graph-node/firehose-node.yaml +++ b/graph-node/firehose-node.yaml @@ -16,6 +16,10 @@ spec: port: 26657 protocol: TCP targetPort: 26657 + - name: prometheus-node + port: 26660 + protocol: TCP + targetPort: 26660 - name: http port: 8081 protocol: TCP @@ -24,6 +28,10 @@ spec: port: 9030 protocol: TCP targetPort: 9030 + - name: prometheus-firehose + port: 9102 + protocol: TCP + targetPort: 9102 selector: app.kubernetes.io/name: persistencecore-firehose-node --- diff --git a/graph-node/graph-node.yaml b/graph-node/graph-node.yaml index 049bb97..24308f3 100644 --- a/graph-node/graph-node.yaml +++ b/graph-node/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/scripts/init-firehose-node.sh b/graph-node/scripts/init-firehose-node.sh index b829f3b..8f3e426 100644 --- a/graph-node/scripts/init-firehose-node.sh +++ b/graph-node/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 From 81aa7fba422a41dc219ac24f171ad57408b2c68f Mon Sep 17 00:00:00 2001 From: Nabarun Sarkar Date: Thu, 31 Aug 2023 00:19:26 +0530 Subject: [PATCH 2/3] Update graph-node.yaml --- graph-node/graph-node.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph-node/graph-node.yaml b/graph-node/graph-node.yaml index 24308f3..83b4853 100644 --- a/graph-node/graph-node.yaml +++ b/graph-node/graph-node.yaml @@ -20,7 +20,7 @@ spec: port: 8020 protocol: TCP targetPort: 8020 - - name: health⁠ + - name: health port: 8030 protocol: TCP targetPort: 8030 From 3798c7f052edadb986dd1119e1c9e8feccb654aa Mon Sep 17 00:00:00 2001 From: Nabarun Sarkar Date: Mon, 4 Sep 2023 13:41:06 +0530 Subject: [PATCH 3/3] Update graph-node.yaml --- graph-node/graph-node.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graph-node/graph-node.yaml b/graph-node/graph-node.yaml index 83b4853..79d7950 100644 --- a/graph-node/graph-node.yaml +++ b/graph-node/graph-node.yaml @@ -24,6 +24,10 @@ spec: port: 8030 protocol: TCP targetPort: 8030 + - name: prometheus + port: 8040 + protocol: TCP + targetPort: 8040 selector: app.kubernetes.io/name: persistencecore-graph-node ---