Closed tocean closed 2 years ago
@rafsalas19 Hey Rafael, Could you please this PR?
If we run net_exporter in docker without host network, we can't find infiniband counter directories (just like /sys/class/infiniband/mlx5_ib5/ports/1/counters/) . We need to mount /sys folder to docker and pass the mounted sysfs path of infiniband to net_exporter.
Everything looks good to me. Just one question, what is the use case of running the exporter within a docker container?
If we run net_exporter in docker without host network, we can't find infiniband counter directories (just like /sys/class/infiniband/mlx5_ib5/ports/1/counters/) . We need to mount /sys folder to docker and pass the mounted sysfs path of infiniband to net_exporter.
Everything looks good to me. Just one question, what is the use case of running the exporter within a docker container?
We want to run Moneo exporters in k8s cluster. In k8s, each application will run in container.
If we run net_exporter in docker without host network, we can't find infiniband counter directories (just like /sys/class/infiniband/mlx5_ib5/ports/1/counters/) . We need to mount /sys folder to docker and pass the mounted sysfs path of infiniband to net_exporter.