Clean up Docker stats logging

- Remove excessive debug logging
- Add single warning when no containers found (with hint about socket mount)
- Use HTTP/1.0 to avoid chunked encoding complexity
- Simplify response parsing
This commit is contained in:
GitHub Copilot
2026-01-24 12:30:39 +00:00
parent 13d2569c37
commit 6ab7503748
2 changed files with 27 additions and 68 deletions
-9
View File
@@ -680,15 +680,6 @@ class LocalServer:
# Container param is slug, but stats are stored by service name
service_name = self._slug_to_service.get(container, container)
values = self._docker_stats.get_cpu_history(service_name)
if not values:
log.debug(
"No CPU history for container=%s service=%s (available=%s)",
container,
service_name,
list(self._docker_stats._cpu_history.keys()),
)
else:
log.debug("Docker stats collector not available")
svg = render_sparkline_svg(values, width=width, height=height)
headers = {"Cache-Control": "no-cache, max-age=0"}