Azure / Moneo

Distributed AI/HPC Monitoring Framework
MIT License
26 stars 15 forks source link

Make sysfs of infiniband as an argument to NetExporter #19

Closed tocean closed 2 years ago

tocean commented 2 years ago

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.

RyoYang commented 2 years ago

@rafsalas19 Hey Rafael, Could you please this PR?

rafsalas19 commented 2 years ago

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?

tocean commented 2 years ago

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.