Skip to content

Commit

Permalink
fix: Enable listening on IPv6 (#3037)
Browse files Browse the repository at this point in the history
* Prometheus listens on ipv6

* Ruff 🐶
  • Loading branch information
anticorrelator committed Apr 30, 2024
1 parent f5f57fb commit dee6681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/phoenix/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ def _get_pid_file() -> Path:
)
read_only = args.read_only
logger.info(f"Server umap params: {umap_params}")
if enable_prometheus := (
get_env_enable_prometheus() or args.enable_prometheus
):
if enable_prometheus := (get_env_enable_prometheus() or args.enable_prometheus):
if args.enable_prometheus:
warnings.warn(
"The --enable-prometheus command line argument is being deprecated "
Expand Down
2 changes: 1 addition & 1 deletion src/phoenix/server/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def dispatch(self, request: Request, call_next: RequestResponseEndpoint) -

def start_prometheus() -> None:
Thread(target=gather_system_data, daemon=True).start()
start_http_server(9090)
start_http_server(9090, addr="::")


def gather_system_data() -> None:
Expand Down

0 comments on commit dee6681

Please sign in to comment.