ViryBe
1a7d897bdc
compute cpu and memory stats for docker on windows ( #653 )
...
The Docker daemon's API returns different values on Windows and non-Windows systems. This impacts
the calculation of `cpuPct` and `usedMemory` for each container. The systems are disciminate on the
`Server` header send by the server. Uses the unix stats calculation in case the header is not set.
`docker stats` implementation for reference:
https://github.com/docker/cli/blob/master/cli/command/container/stats_helpers.go#L100
Co-authored-by: Benoit VIRY <benoit.viry@cgx-group.com >
2025-04-25 18:27:36 -04:00
henrygd
6767392ea8
refactor: update some types in docker.go
2025-03-05 23:40:23 -05:00
henrygd
0443a85015
fix: correct typo in Docker stats collection variable name
2025-03-04 17:39:49 -05:00
henrygd
681286eb4f
fix: add User-Agent to resolve Docker Desktop bug ( #513 , #603 )
...
- also added body closure I forgot earlier whoops
2025-03-04 01:56:22 -05:00
Henry Dollman
120aff0d18
config: prefix environment variables with BESZEL_AGENT_ ( #502 )
2025-01-29 20:13:07 -05:00
Henry Dollman
4cb7b97416
change podman socket path to use current uid
2024-11-12 18:14:43 -05:00
Henry Dollman
3cd11d6bc4
improve podman support ( #211 )
2024-11-12 11:59:56 -05:00
Henry Dollman
741575df15
revert tweaks for old docker. needs more testing.
2024-11-02 14:43:35 -04:00
Henry Dollman
df0f3a154f
rtl layout progress and updates to arabic translations
2024-10-31 16:48:28 -04:00
Henry Dollman
539c0ccb1d
retry failed containers separately so we can run them in parallel ( #58 )
2024-10-21 17:00:13 -04:00
Henry Dollman
8bf7a0e1d6
add DOCKER_TIMEOUT env var
2024-10-19 16:33:33 -04:00
Henry Dollman
6cf6661f2e
raise docker client timeout to 8 seconds if version <= 24
2024-10-12 12:24:53 -04:00
Henry Dollman
76cea9d3c3
increase docker client timeout to 2100ms
2024-10-08 19:17:03 -04:00
Henry Dollman
f051f6a5f8
add dockerManager / fix for Docker 24 and older
...
* dockerManager now handles all docker api interaction and container metrics tracking
* sets unlimited concurrency for docker 24 and older
2024-10-02 19:45:26 -04:00
Henry Dollman
268e364bd4
update MemoryStats type
2024-09-29 12:36:19 -04:00
Henry Dollman
dd84a9fd35
remove semaphore and limit docker host connections to 10
2024-09-29 12:30:30 -04:00
Henry Dollman
9637363cf3
combine container.Stats and container.PrevContainerStats
2024-09-28 18:51:46 -04:00
Henry Dollman
73d0dd25ec
agent refactoring - create agent/docker.go, agent/system.go
2024-09-28 17:49:04 -04:00