mirror of
https://gitlab.com/fabinfra/fabaccess/prometheus-exporter.git
synced 2024-12-22 04:23:49 +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 . .
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
EXPOSE 9877
|
||||
EXPOSE 9000
|
||||
VOLUME /app/config
|
||||
CMD [ "python3", "main.py"]
|
||||
|
@ -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
|
||||
|
4
main.py
4
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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user