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
Description:
Currently, the ghcr.io/huggingface/text-embeddings-inference:1.6-grpc container always binds to port 9000 for Prometheus metrics, and there is no apparent way to modify or disable this behavior. This causes port conflicts when running multiple containers inside the same Kubernetes pod, as all instances attempt to bind to the same port.
Problem Statement:
The container exposes port 9000 by default for Prometheus metrics.
When deploying multiple containers in the same pod, they all try to bind to port 9000, leading to an "address already in use" error.
Since Kubernetes pods share the same network namespace, this issue cannot be mitigated without modifying the container.
Proposed Solution:
I would like to request a feature enhancement to allow users to:
Modify the Prometheus metrics port via an environment variable, e.g.:
env:
- name: PROMETHEUS_PORTvalue: "9001"
Disable Prometheus metrics entirely via an environment variable, e.g.:
env:
- name: ENABLE_PROMETHEUSvalue: "false"
If ENABLE_PROMETHEUS=false, the container should not start the Prometheus metrics server at all.
Expected Benefits:
Increased flexibility for Kubernetes users and multi-container deployments.
Avoids unnecessary container modifications or requiring separate pods for each instance.
Improves adoption and scalability for users integrating this container into complex deployments.
Would it be possible to introduce this configuration in a future release? I’d be happy to contribute if needed! 🚀
Thank you for your work on this great project! 🙌
Motivation
Problem Statement:
The container exposes port 9000 by default for Prometheus metrics.
When deploying multiple containers in the same pod, they all try to bind to port 9000, leading to an "address already in use" error.
Since Kubernetes pods share the same network namespace, this issue cannot be mitigated without modifying the container.
Your contribution
Proposed Solution:
I would like to request a feature enhancement to allow users to:
Modify the Prometheus metrics port via an environment variable, e.g.:
env:
- name: PROMETHEUS_PORTvalue: "9001"
Disable Prometheus metrics entirely via an environment variable, e.g.:
env:
- name: ENABLE_PROMETHEUSvalue: "false"
If ENABLE_PROMETHEUS=false, the container should not start the Prometheus metrics server at all.
The text was updated successfully, but these errors were encountered:
Feature request
Description:
Currently, the ghcr.io/huggingface/text-embeddings-inference:1.6-grpc container always binds to port 9000 for Prometheus metrics, and there is no apparent way to modify or disable this behavior. This causes port conflicts when running multiple containers inside the same Kubernetes pod, as all instances attempt to bind to the same port.
Problem Statement:
Proposed Solution:
I would like to request a feature enhancement to allow users to:
If
ENABLE_PROMETHEUS=false
, the container should not start the Prometheus metrics server at all.Would it be possible to introduce this configuration in a future release? I’d be happy to contribute if needed! 🚀
Thank you for your work on this great project! 🙌
Motivation
Your contribution
I would like to request a feature enhancement to allow users to:
If
ENABLE_PROMETHEUS=false
, the container should not start the Prometheus metrics server at all.The text was updated successfully, but these errors were encountered: