question

DavidGaulke-9508 avatar image
0 Votes"
DavidGaulke-9508 asked LewisPhil-2990 commented

Alert when Azure Container Instance is down

I've looked into using Azure Monitor to send an alert when a container instance goes down, but have not been able to find a way to do this. I see triggers for resource usage and administrative events, but not the case where a container dies and needs to be restarted. Is there a way to do this?

azure-monitorazure-container-instances
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered LewisPhil-2990 commented

@DavidGaulke-9508



In container instance, you can always specify the restart policy which will manage the restart of the container in case that container process exits. You can read more about it here.


Having said that, I would suggest to have alert on the basis of health url which will ensure your container is ready to serve traffic. Azure monitoring system provides ways to do that, please check this doc for details.




Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I’m aware of the restart option, but will the restart result in an alert being sent? I need notification that the container died, but notification of a restart would be sufficient. Health URL will not work for me as this container does not serve any web traffic.

0 Votes 0 ·

I have the same requirement. I don't serve web traffic from my container, and need to know if it is automatically restarted.
Did you find a way to do this?

0 Votes 0 ·