willfarrell / docker-autoheal

Monitor and restart unhealthy docker containers.
MIT License
1.31k stars 225 forks source link

How to send notifications to discord #108

Open frankvp11 opened 1 year ago

frankvp11 commented 1 year ago

I'd like to have the autoheal image send notifications to discord, however im not to sure on how, as there doesn't appear to be any documentation on this subject. I was able to get the webhook url from discord, however what do I do then? whenver I run the container (and one goes unhealthy) it gives me the following output in the terminal :

temp2-autoheal-1    | {"message": "Cannot send an empty message", "code": 50006}28-07-2023 13:56:44 Container /temp2-my_service-1 (df2a3b117f01) found to be unhealthy - Restarting container now with 10s timeout

How do I actually send a message?

strausmann commented 1 year ago

I was just wondering that too...