Docker Stats Nonexistant #495
Replies: 4 comments 2 replies
-
For debug logs, try running the binary directly with some temporary options: PORT=44555 KEY="..." LOG_LEVEL=debug /opt/beszel-agent/beszel-agent Are you able to get container info via curl from the host? curl --unix-socket /var/run/docker.sock http://localhost/containers/json |
Beta Was this translation helpful? Give feedback.
-
Can you check that the API is returning valid data for your containers? Use Then use curl to make a request to the API (replace
Post the response here please, and also what |
Beta Was this translation helpful? Give feedback.
-
I'm sorry for the slow reply. Had an emergency come up. There was only 1 container listed in the agent error logs. When I started looking into it more, it turns out that container wasn't working right anyway. I used docker commands to stop the container and reran the binary directly (as above). I don't see any lines displaying an error any more. I've restarted the Beszel service and I'll let it run through the afternoon to see if I get docker stats. |
Beta Was this translation helpful? Give feedback.
-
Just an update. After letting this soak for a few days, I still haven't got docker stats running the binary in debug mode yields no errors. Just for grins, I went out and removed it from the server and re-added it. No docker stats. |
Beta Was this translation helpful? Give feedback.
-
Description
Perhaps I just can't figure it out, but from the sample graphs I've seen, the docker stats should "just" appear. Here's what I've done:
1 - installed Beszel server on 1 machine. It works, I can connect, and see data. I'll refer to this machine as my BServer later.
2 - installed the Beszel agent on another machine. This machine is my "server" and runs probably 2 dozen docker containers. This machine is what I'll reference as Server below.
Both of these installs are "binary" installs and everything appears working. On the BServer, I see stats for the the Server. Things update. But there's no stats about docker.
Reading issue 484 (#484), I've checked the group membership. It's a member of the docker group:
Reading issue 144 (#144), I'm not running on a pi but am using debian 12. When I run docker stats, I see memory data for my containers listed
I've read the common problems doc (https://beszel.dev/guide/common-issues)
docker on my server reports it's version 27:
And I've already mentioned I've checked the docker stats command.
I've checked /var/log on my Server, but don't see any logfile for Beszel there.
What else should I check?
OS / Architecture
linux/amd64
Beszel version
0.9.1
Installation method
Binary
Configuration
No response
Hub Logs
none shown
Agent Logs
Beta Was this translation helpful? Give feedback.
All reactions