You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it didn't work - start_all.sh didn't complain, but the resulting monitor did not see any of these nodes. Lucikly, @psarna who had exactly the same problem and read through the start_all.sh code, discovered that unless the "-l" option is given, prometheus (which is run inside docker, or in my case podman) cannot contact Scylla running on the host's loopback interface (127.0.0.1).
The problem is that this "-l" option is completely undiscoverable. After I was told of its existence, I found it is described in the README, but it's not something I noticed when I first read this README.
I think that instead of "-l" being an option, it should be completely automatic. I see two approaches to do that:
One approach is to always enable "-l". Is there is some performance penalty or other problem in always enabling it?
The other approach is for start_all.sh to check if prometheus/scylla_servers.yml has 127.*.*.* addresses, and if it does, turn on the "-l" option or at least print a message recommending to do so.
The text was updated successfully, but these errors were encountered:
using the host network comes with some limitations (port mapping for example) I did think about adding a warning if someone used the localhost, we decided against it because it it's not only the 127/24 range, but also localhost and any local mapping to localhost.
Thanks @amnonh. I think this is a very important problem to fix. I know you like docker and how Prometheus and Grafana runs inside it, but the users - like myself - either aren't aware of this, or aren't aware exactly how it means. If your script takes a user's "external" (outside docker) configuration file, any file name or IP address or whatever inside this configuration file should refer to the user's "external" setup, not to hidden stuff inside docker. This is why I labeled this issue a "bug" and not a "feature request". It is a bug that IP addresses specified in the configuration file do not mean what they are expected to mean.
In
prometheus/scylla_servers.yml
I hadAnd it didn't work -
start_all.sh
didn't complain, but the resulting monitor did not see any of these nodes. Lucikly, @psarna who had exactly the same problem and read through thestart_all.sh
code, discovered that unless the "-l" option is given, prometheus (which is run inside docker, or in my case podman) cannot contact Scylla running on the host's loopback interface (127.0.0.1).The problem is that this "-l" option is completely undiscoverable. After I was told of its existence, I found it is described in the README, but it's not something I noticed when I first read this README.
I think that instead of "-l" being an option, it should be completely automatic. I see two approaches to do that:
prometheus/scylla_servers.yml
has127.*.*.*
addresses, and if it does, turn on the "-l" option or at least print a message recommending to do so.The text was updated successfully, but these errors were encountered: