From 010f4e0dbd5a67826910e67ff50cc207d26daa3a Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Tue, 7 Feb 2023 05:34:26 +0100 Subject: [PATCH] Updated: Port to 9000 --- Dockerfile | 2 +- README.md | 2 +- main.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 527999d..5e12aeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 58bb443..dd256be 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.py b/main.py index b918b18..3f58f1a 100644 --- a/main.py +++ b/main.py @@ -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"))