Reputation: 411
I'm trying to add an alert rule that would allow Alert Manager to notify me whenever a particular docker container restarts. Does such rule exist? Any help would be greatly appreciated!
Upvotes: 0
Views: 766
Reputation: 411
Ive managed to make it work with process_start_time_seconds{job='my_job'} expression
Upvotes: 0
Reputation: 407
You can use this query to see the number of seconds that have passed since the container was started.
time() - container_start_time_seconds
Upvotes: 1