powerapi
powerapi copied to clipboard
Socket mode should listen on configurable address
Currently, in socket mode as source, PowerAPI is listening on loopback interface 127.0.0.1.
This is hardcoded in ./src/powerapi/database/socket_db.py:82
When running inside a container, the port is not reachable using Docker bridge driver.
This should be replaced by 0.0.0.0 to listen on all interfaces of the container or be configurable as in Prometheus mode.
Hello,
There is an ongoing rework of the socketdb and the listening interface will become configurable.
This will be available in the next PowerAPI release.
In the meanwhile, would it be possible to simply modify the line given by @Thommil ? It blocks a PR request on the deployment with docker-compose and will not inder the upcoming change in the socketdb.