Updated: Port to 9000

This commit is contained in:
TheJoKlLa 2023-02-07 05:34:26 +01:00
parent 4dec3b3e91
commit 010f4e0dbd
3 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,6 @@ RUN apt-get install -y cmake capnproto clang gcc build-essential
COPY . .
RUN pip3 install -r requirements.txt
EXPOSE 9877
EXPOSE 9000
VOLUME /app/config
CMD [ "python3", "main.py"]

View File

@ -4,7 +4,7 @@ Export BFFH Data as Prometheus Metric
# Env Variables
* POLLING_INTERVAL_SECONDS = 5
* EXPORTER_PORT = 9877
* EXPORTER_PORT = 9000
* BFFH_HOST = localhost
* BFFH_PORT = 59661
* BFFH_USER = Admin1

View File

@ -22,10 +22,10 @@ def convert2int(enum):
async def main():
polling_interval_seconds = int(os.getenv("POLLING_INTERVAL_SECONDS", "5"))
exporter_port = int(os.getenv("EXPORTER_PORT", "9877"))
exporter_port = int(os.getenv("EXPORTER_PORT", "9000"))
bffh_host = str(os.getenv("BFFH_HOST", "localhost"))
bffh_port = int(os.getenv("BFFH_PORT", "59666"))
bffh_port = int(os.getenv("BFFH_PORT", "59661"))
bffh_user = str(os.getenv("BFFH_USER", "Admin1"))
bffh_password = str(os.getenv("BFFH_PASSWORD", "secret"))