-
Notifications
You must be signed in to change notification settings - Fork 74
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
Use non-privileged ICMP socket on Linux #9
Comments
I may be completely wrong, but isn't it already implemented in Lines 249 to 259 in 08734ee
|
We have the same issue open for the blackbox_exporter. prometheus/blackbox_exporter#147 |
@paulfantom that's a udp ping. Linux now has unprivileged icmp sockets. |
Oh, yeah, I just looked closer into |
I have same problem. I create user prometheus, and see error.
|
I believe this has already been resovled. I see it supports passing icmp or udp as protocol. It works for me without running docker as privileged |
I try setting:
like the blackbox exporter uses, but no pings go out unless --privileged is used. |
Linux (and Darwin) support non-privileged ICMP echo sockets. It would be a fun exercise to use them, rather than requiring capabilities.
The text was updated successfully, but these errors were encountered: