mirror of
https://gitlab.com/fabinfra/fabaccess/prometheus-exporter.git
synced 2024-12-21 20:13:48 +01:00
Updated: Port to 9000
This commit is contained in:
parent
4dec3b3e91
commit
010f4e0dbd
@ -10,6 +10,6 @@ RUN apt-get install -y cmake capnproto clang gcc build-essential
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 9877
|
EXPOSE 9000
|
||||||
VOLUME /app/config
|
VOLUME /app/config
|
||||||
CMD [ "python3", "main.py"]
|
CMD [ "python3", "main.py"]
|
||||||
|
@ -4,7 +4,7 @@ Export BFFH Data as Prometheus Metric
|
|||||||
|
|
||||||
# Env Variables
|
# Env Variables
|
||||||
* POLLING_INTERVAL_SECONDS = 5
|
* POLLING_INTERVAL_SECONDS = 5
|
||||||
* EXPORTER_PORT = 9877
|
* EXPORTER_PORT = 9000
|
||||||
* BFFH_HOST = localhost
|
* BFFH_HOST = localhost
|
||||||
* BFFH_PORT = 59661
|
* BFFH_PORT = 59661
|
||||||
* BFFH_USER = Admin1
|
* BFFH_USER = Admin1
|
||||||
|
4
main.py
4
main.py
@ -22,10 +22,10 @@ def convert2int(enum):
|
|||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
polling_interval_seconds = int(os.getenv("POLLING_INTERVAL_SECONDS", "5"))
|
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_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_user = str(os.getenv("BFFH_USER", "Admin1"))
|
||||||
bffh_password = str(os.getenv("BFFH_PASSWORD", "secret"))
|
bffh_password = str(os.getenv("BFFH_PASSWORD", "secret"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user