Skip to content

Commit 9c7e287

Browse files
PhilWindlespypsy
andcommitted
chore: More IRM deployment fixes
Co-authored-by: Phil Windle <[email protected]> Co-authored-by: spypsy <[email protected]>
1 parent f92db72 commit 9c7e287

File tree

8 files changed

+137
-192
lines changed

8 files changed

+137
-192
lines changed

.github/workflows/deploy-fisherman-network.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,20 @@ jobs:
156156
./scripts/install_deps.sh
157157
./scripts/network_deploy.sh ignition-fisherman
158158
159+
- name: Setup IRM
160+
env:
161+
MONITORING_NAMESPACE: ${{ env.NETWORK }}-irm
162+
INFURA_SECRET_NAME: infura-${{ env.L1_NETWORK }}-url
163+
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
164+
run: |
165+
166+
echo "Setting up IRM for namespace: $NAMESPACE, monitoring namespace: $MONITORING_NAMESPACE"
167+
echo "Network: $NETWORK"
168+
169+
echo "INFURA Secret Name: $INFURA_SECRET_NAME"
170+
171+
./spartan/metrics/testnet-monitor/scripts/update-monitoring.sh $NAMESPACE ${{ env.MONITORING_NAMESPACE }} $NETWORK $INFURA_SECRET_NAME
172+
159173
- name: Notify Slack on failure
160174
if: failure()
161175
env:

.github/workflows/deploy-network.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
if: inputs.network == 'testnet' && !contains(inputs.semver, '-')
142142
env:
143143
MONITORING_NAMESPACE: testnet-block-height-monitor
144+
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
144145
run: |
145146
echo "Updating monitoring app for testnet deployment..."
146147
./spartan/metrics/testnet-monitor/scripts/update-monitoring.sh testnet ${{ env.MONITORING_NAMESPACE }}

spartan/metrics/testnet-monitor/grafana/dashboards/alpha-testnet-monitor.json

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"type": "linear"
5656
},
5757
"showPoints": "auto",
58+
"showValues": false,
5859
"spanNulls": false,
5960
"stacking": {
6061
"group": "A",
@@ -101,34 +102,36 @@
101102
"sort": "none"
102103
}
103104
},
104-
"pluginVersion": "12.1.0-89781",
105+
"pluginVersion": "12.3.0-18356121373.patch4",
105106
"targets": [
106107
{
107108
"editorMode": "code",
108-
"expr": "rollup_pending_block_number{network=\"$network\"}",
109-
"legendFormat": "Pending block height ($network)",
109+
"exemplar": false,
110+
"expr": "max(rollup_pending_block_number) by (network)",
111+
"instant": false,
112+
"legendFormat": "Pending block height - {{network}}",
110113
"range": true,
111-
"refId": "A"
114+
"refId": "Pending Block Height"
112115
},
113116
{
114117
"datasource": {
115118
"type": "prometheus",
116119
"uid": "grafanacloud-prom"
117120
},
118121
"disableTextWrap": false,
119-
"editorMode": "builder",
120-
"expr": "rollup_proven_block_number{network=\"$network\"}",
122+
"editorMode": "code",
123+
"expr": "max(rollup_proven_block_number) by (network)",
121124
"fullMetaSearch": false,
122125
"hide": false,
123126
"includeNullMetadata": true,
124127
"instant": false,
125-
"legendFormat": "Proven block height",
128+
"legendFormat": "Proven block height - {{network}}",
126129
"range": true,
127130
"refId": "B",
128131
"useBackend": false
129132
}
130133
],
131-
"title": "Pending Block Number",
134+
"title": "Pending & Proven Block Number",
132135
"type": "timeseries"
133136
},
134137
{
@@ -165,6 +168,7 @@
165168
"type": "linear"
166169
},
167170
"showPoints": "auto",
171+
"showValues": false,
168172
"spanNulls": false,
169173
"stacking": {
170174
"group": "A",
@@ -211,11 +215,13 @@
211215
"sort": "none"
212216
}
213217
},
214-
"pluginVersion": "12.1.0-89781",
218+
"pluginVersion": "12.3.0-18356121373.patch4",
215219
"targets": [
216220
{
217-
"expr": "rollup_pending_block_number{network=\"$network\"}",
221+
"editorMode": "code",
222+
"expr": "rollup_pending_block_number",
218223
"legendFormat": "{{network}}",
224+
"range": true,
219225
"refId": "A"
220226
}
221227
],
@@ -256,6 +262,7 @@
256262
"type": "linear"
257263
},
258264
"showPoints": "auto",
265+
"showValues": false,
259266
"spanNulls": false,
260267
"stacking": {
261268
"group": "A",
@@ -302,11 +309,13 @@
302309
"sort": "none"
303310
}
304311
},
305-
"pluginVersion": "12.1.0-89781",
312+
"pluginVersion": "12.3.0-18356121373.patch4",
306313
"targets": [
307314
{
308-
"expr": "rollup_proven_block_number{network=\"$network\"}",
315+
"editorMode": "code",
316+
"expr": "rollup_proven_block_number",
309317
"legendFormat": "{{network}}",
318+
"range": true,
310319
"refId": "A"
311320
}
312321
],
@@ -316,18 +325,18 @@
316325
],
317326
"preload": false,
318327
"refresh": "",
319-
"schemaVersion": 41,
328+
"schemaVersion": 42,
320329
"tags": [],
321330
"templating": {
322331
"list": []
323332
},
324333
"time": {
325-
"from": "now-6h",
334+
"from": "now-3h",
326335
"to": "now"
327336
},
328337
"timepicker": {},
329338
"timezone": "browser",
330-
"title": "Alpha Testnet Block Height Monitor",
331-
"uid": "testnet-monitor",
332-
"version": 5
339+
"title": "Aztec Testnet Block Height Monitor",
340+
"uid": "alpha-testnet-monitor",
341+
"version": 11
333342
}

spartan/metrics/testnet-monitor/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ client.register.setDefaultLabels({ network: NETWORK as string });
6161
const provenBlockNumberGauge = new client.Gauge({
6262
name: "rollup_proven_block_number",
6363
help: "The latest proven block number of the rollup",
64+
labelNames: ["network"],
6465
});
6566

6667
const pendingBlockNumberGauge = new client.Gauge({
6768
name: "rollup_pending_block_number",
6869
help: "The latest pending block number of the rollup",
70+
labelNames: ["network"],
6971
});
7072

7173
async function updateBlockNumbers(): Promise<void> {

0 commit comments

Comments
 (0)