Chainflow / celo

MIT License
2 stars 1 forks source link

Deploy Flow Verification Node monitoring and alerting #9

Open cfl0ws opened 3 years ago

cfl0ws commented 3 years ago

Note: I already have a very simple monitoring tool running on this server.



TOKEN=1225105282:AAHVAVIwJaFNcz-QcfqYJ2NZZwYfKUOaLFY
CHAT_ID=-1001346480078
URL="https://api.telegram.org/bot$TOKEN/sendMessage"
MESSAGE="Flow Verification Node NOT RUNNING"

/usr/bin/curl localhost:8080/metrics | grep consensus_compliance_sealed_height
RESULT=$?

echo -e "Grep identified as: $RESULT"

if [ $RESULT == 1 ]; then
  echo -e $MESSAGE
  # Send to Telegram
  curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$(echo -e $MESSAGE)"
fi```
frankchen07 commented 3 years ago

I can't see to update this issue to add checkboxes. It looks like I do have access to the repo though.

frankchen07 commented 3 years ago

@chris-remus can you check permissions on this repo? I don't have access to edit.

frankchen07 commented 3 years ago

this ticket is in the wrong repository, replicated in the correct repo here:

https://github.com/Chainflow/flow/issues/1