-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[receiver/hostmetrics] Network info from within container despite mounting /hostfs #34400
Comments
Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Only hard-guessing here but what about trying to set the |
I'm on Docker Swarm, not on Kubernetes. My understanding is that a container can either use the host network or be in overlay networks. |
I think @ChrsMark comment was on the right direction. In In Linux environments, the Reading network stats without the host's network:
Reading network stats with the host's network (same network as the host):
I reckon this is not an issue with the receiver as the expected host's network files are not available without the @dhilgarth Would it work collecting the hostmetrics in a sidecar container which forwards them to the exit collector (OTLP receiver)? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
receiver/hostmetrics
What happened?
Description
My otel collector is running in a container. I've followed the documentation to ensure that it is actually monitoring the host and not the container. And this works for everything except network.
My host has the interface enp7s0 and no interface eth0 or eth1.
Yet, I get data for eth0 and eth1 - as you can see below, the container is in two networks - and not für enp7s0
Collector version
0.106.1
Environment information
Environment
OS: "Ubuntu 22.04"
Docker Swarm: "Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1"
OpenTelemetry Collector configuration
Log output
No response
Additional context
This is the Docker Swarm Service definition:
The text was updated successfully, but these errors were encountered: