powerapi icon indicating copy to clipboard operation
powerapi copied to clipboard

Socket mode should listen on configurable address

Open Thommil opened this issue 1 year ago • 2 comments

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.

Thommil avatar Apr 24 '24 08:04 Thommil

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.

gfieni avatar Apr 24 '24 12:04 gfieni

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.

PierreRustOrange avatar Apr 26 '24 12:04 PierreRustOrange