Handle containers going missing in the middle of a metrics run
This commit is contained in:
parent
8d6eb6687f
commit
2f9830c16a
|
@ -37,7 +37,10 @@ class HTTPHandler(MetricsHandler): # type: ignore[misc]
|
||||||
Handle GET requests
|
Handle GET requests
|
||||||
"""
|
"""
|
||||||
if self.path == '/metrics':
|
if self.path == '/metrics':
|
||||||
self._metrics()
|
try:
|
||||||
|
self._metrics()
|
||||||
|
except docker.errors.NotFound:
|
||||||
|
pass
|
||||||
|
|
||||||
if self.path == '/healthcheck':
|
if self.path == '/healthcheck':
|
||||||
if not healthy():
|
if not healthy():
|
||||||
|
|
Loading…
Reference in a new issue