inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
400 stars 184 forks source link

Do not fail on startup in case of network error #87

Closed kvaster closed 2 years ago

kvaster commented 2 years ago

Bot may be used in different setups. There may be no network or there may be telegram api error on startup - in this case bot will fail and will not start. This PR fixes this.

hryamzik commented 2 years ago

I don't see any issues with failing to start due to network problems: supervisor should take care of restarting the bot. However I expect bot to fail sending notification in a way that prometheus would try to resend them. So I'm going to accept this.

ykslol commented 2 years ago

This broke the bot. Get [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x149e600]