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