Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/chain-uptime-monitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Chain Uptime Monitor

on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *' # Run every 4 hours

jobs:
run-monitoring:
name: Chain Uptime Monitor (Orbit)
uses: ./.github/workflows/monitoring.yml
with:
chain: orbit
monitor: chain-uptime
secrets: inherit
6 changes: 4 additions & 2 deletions .github/workflows/monitor-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
"slackTokens": {
"assertion": "ORBIT_CHAIN_ASSERTION_MONITORING_SLACK_TOKEN",
"batch-poster": "ORBIT_CHAIN_BATCH_POSTER_MONITORING_SLACK_TOKEN",
"retryable": "ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN"
"retryable": "ORBIT_RETRYABLE_MONITORING_SLACK_TOKEN",
"chain-uptime": "ORBIT_CHAIN_UPTIME_MONITORING_SLACK_TOKEN"
},
"slackChannels": {
"assertion": "ORBIT_CHAIN_ASSERTION_MONITORING_SLACK_CHANNEL",
"batch-poster": "ORBIT_CHAIN_BATCH_POSTER_MONITORING_SLACK_CHANNEL",
"retryable": "ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL"
"retryable": "ORBIT_RETRYABLE_MONITORING_SLACK_CHANNEL",
"chain-uptime": "ORBIT_CHAIN_UPTIME_MONITORING_SLACK_CHANNEL"
}
}
}
10 changes: 9 additions & 1 deletion .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ jobs:
run: cp ./packages/arb-token-bridge-ui/public/${{ steps.config.outputs.config_file }} ./arbitrum-monitoring/config.json

- name: Run monitoring command
run: cd ./arbitrum-monitoring && yarn ${{ inputs.monitor }}-monitor --enableAlerting --writeToNotion ${{ inputs.chain == 'core' && 'true' || 'false' }} ${{ inputs.monitor == 'retryable' && '--autoRedeem' || '' }}
run: |
cd ./arbitrum-monitoring
if [ "${{ inputs.monitor }}" == "retryable" ]; then
yarn ${{ inputs.monitor }}-monitor --enableAlerting --writeToNotion ${{ inputs.chain == 'core' && 'true' || 'false' }} --autoRedeem
else
yarn ${{ inputs.monitor }}-monitor --enableAlerting
fi
env:
RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets[steps.config.outputs.slack_token] }}
RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
Expand All @@ -71,6 +77,8 @@ jobs:
BATCH_POSTER_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
ASSERTION_MONITORING_SLACK_TOKEN: ${{ secrets[steps.config.outputs.slack_token] }}
ASSERTION_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
CHAIN_UPTIME_MONITORING_SLACK_TOKEN: ${{ secrets[steps.config.outputs.slack_token] }}
CHAIN_UPTIME_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
RETRYABLE_MONITORING_NOTION_TOKEN: ${{ secrets.RETRYABLE_MONITORING_NOTION_TOKEN }}
RETRYABLE_MONITORING_NOTION_DB_ID: ${{ secrets.RETRYABLE_MONITORING_NOTION_DB_ID }}
NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }}
Expand Down