willfarrell / docker-autoheal

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

Feature Request - Add custom text to webhook notifications #118

Open edrock200 opened 11 months ago

edrock200 commented 11 months ago

Respectfully requesting the ability to append the webhook notifications with custom text. Reason being if you have autoheal on multiple hosts with similarly named containers, aside from the container id, its difficult to discern which host the notification is coming from. If we deploy it to add, for example, the hostname appended to the webhook, it will quickly identify the container and host in the webhook notification. Thanks in advance for your consideration.

christiantosta commented 10 months ago

If you are running with docker-compose, you can append the node name to the project name:

So your containers will be named:

my-project-node1-app-1 my-project-node1-app-2 my-project-node2-app-1 my-project-node2-app-2