monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matching multiple docker instances


From: Martin Pala
Subject: Re: Matching multiple docker instances
Date: Thu, 27 Oct 2016 13:04:17 +0200

Hello,

if the command-line cannot be extended by some unique identifier (so the "check 
program ... matching ..." cannot be used), you can use the "check program" with 
custom script.

Best regards,
Martin


> On 27 Oct 2016, at 10:20, Francesco Albanese <address@hidden> wrote:
> 
> Hello,
> 
> recently I put into production a docker image running in multiple containers.
> As the executed command stays the same, doing a process regex matching
> is useless.
> Also, docker does not write PID files out (only ID files).
> 
> My partial workaround is to call "docker top ID" with "check program",
> but I can only get a binary check:
> dead / alive container. Indeed, without a PID file I cannot exert any
> check on the used resources.
> 
> Am I hitting a technical limitation of Monit ? Am I missing something ?
> 
> Do you - core developers - envision the possibility to read a PID from
> a program (e.g. docker inspect) instead of using procfs ?
> 
> Cheers
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]