From 769378c07ba83f44a5a0a6bd3553ae12adb4393a Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:01:04 -0400 Subject: [PATCH] fix. --- api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index 58c5e01..e40ed33 100644 --- a/api.py +++ b/api.py @@ -1,6 +1,6 @@ import time from flask import Flask, jsonify, request -from prometheus_client import Counter, Summary +from prometheus_client import Counter, Summary, start_http_server from timber import axe, LumberJack from config import _CLIENT_CONFIG @@ -43,4 +43,5 @@ def get_client_config(hostname): return jsonify(_CLIENT_CONFIG), 200 if __name__ == '__main__': - app.run(debug=True, host='0.0.0.0') \ No newline at end of file + start_http_server(port=8000, addr='0.0.0.0') + app.run(debug=False, host='0.0.0.0') \ No newline at end of file