node-exporter fails

1,557 views
Skip to first unread message

Tamar

unread,
Mar 3, 2021, 2:07:30 AM3/3/21
to Prometheus Users
Hi,

I am trying to run node-exporter on several servers.
For all servers but one, node-exporter started successfully using the command:
docker run -p 9100:9100 \
--name node_exporter \
 -v "/proc:/host/proc"  \
 -v "/sys:/host/sys" \
 -v "/:/rootfs" \
 --net="host" prom/node-exporter \
 --path.procfs /host/proc \
 --path.sysfs /host/proc 
--collector.netclass.ignored-devices \
 --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"

For one server only I get this error when running the container:

level=error ts=2021-03-03T06:56:28.725Z caller=collector.go:161 msg="collector failed" name=netclass duration_seconds=5.9668e-05 err="could not get net class info: error obtaining net class info: cannot access /host/proc/class/net dir open /host/proc/class/net: no such file or directory"

Any idea how to overcome this?

Thanks,
Tamar

Ben Kochie

unread,
Mar 3, 2021, 2:47:47 AM3/3/21
to Tamar, Prometheus Users
The instructions for Docker use are here:


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a1c2e6a6-b2ef-4360-9ae6-2ddfc77ec43dn%40googlegroups.com.

Jiacai Liu

unread,
Mar 3, 2021, 3:07:54 AM3/3/21
to Tamar, promethe...@googlegroups.com

Check this
https://github.com/prometheus/node_exporter/issues/1840.

Tamar <tama...@gmail.com> writes:

> Hi,
>
> I am trying to run node-exporter on several servers.
> For all servers but one, node-exporter started successfully
> using the
> command:
> docker run -p 9100:9100 \
> --name node_exporter \
> -v "/proc:/host/proc" \
> -v "/sys:/host/sys" \
> -v "/:/rootfs" \
> --net="host" prom/node-exporter \
> --path.procfs /host/proc \
> --path.sysfs /host/proc
> --collector.netclass.ignored-devices \
> --collector.filesystem.ignored-mount-points
> "^/(sys|proc|dev|host|etc)($|/)"
>
> For one server only I get this error when running the container:
>
> *level=error ts=2021-03-03T06:56:28.725Z caller=collector.go:161
> msg="collector failed" name=netclass duration_seconds=5.9668e-05
> err="could
> not get net class info: error obtaining net class info: cannot
> access
> /host/proc/class/net dir open /host/proc/class/net: no such file
> or
> directory"*
signature.asc
Reply all
Reply to author
Forward
0 new messages