Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Monitoring Docker on Windows cause error #488

Open
Eisaichen opened this issue Jan 24, 2025 · 0 comments
Open

[Bug]: Monitoring Docker on Windows cause error #488

Eisaichen opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Eisaichen
Copy link

Description

2025/01/24 13:06:16 ERROR Error getting container stats err="container2 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:06:16 ERROR Error getting container stats err="container1 - no memory stats - see https://github.com/henrygd/beszel/issues/144"

This error occurs for every update cycle. No data for "Docker Memory Usage" in the Hub.
This is not related to #144, docker stats is able to run.
The cause seems obvious, Docker on Windows doesn't report memory usage in the same format as Linux.

# Windows
CONTAINER ID   NAME       CPU %     PRIV WORKING SET   NET I/O          BLOCK I/O
f66a34bf45ca   container1   0.00%     269.9MiB           470MB / 7.26MB   2.07GB / 2.05GB
5a9f7dab0b95   container2     0.00%     57.12MiB           310MB / 10.9MB   5.1GB / 7.18GB


# Linux
CONTAINER ID   NAME           CPU %     MEM USAGE / LIMIT     MEM %     NET I/O       BLOCK I/O   PIDS
2f5895f9a7c4   busy_neumann   0.00%     1.984MiB / 15.23GiB   0.01%     1.11kB / 0B   0B / 0B     1

Expected Behavior

Report container memory usage data as designed.

Steps to Reproduce

  1. Run some Windows Containers.
  2. Setup DOCKER_HOST for beszel agent.
  3. observe the error.

OS / Architecture

Windows/amd64 (agent), Linux/amd64 (Hub)

Beszel version

0.9.1

Installation method

Binary

Configuration

Hub Logs

Agent Logs

2025/01/24 13:03:28 INFO Detected root device name=\
2025/01/24 13:03:28 WARN Device not found in diskstats name=\
2025/01/24 13:03:28 INFO DOCKER_HOST host=tcp://127.0.0.1:2375
2025/01/24 13:03:28 INFO Starting SSH server address=:45876
2025/01/24 13:04:16 ERROR Error getting container stats err="container1 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:04:16 ERROR Error getting container stats err="container2 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:05:16 ERROR Error getting container stats err="container2 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:05:16 ERROR Error getting container stats err="container1 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:06:16 ERROR Error getting container stats err="container2 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:06:16 ERROR Error getting container stats err="container1 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
2025/01/24 13:07:16 ERROR Error getting container stats err="container1 - no memory stats - see https://github.com/henrygd/beszel/issues/144"
@Eisaichen Eisaichen added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant