This commit is contained in:
Kameron Kenny 2024-10-21 15:01:04 -04:00
parent d50bfa4e21
commit 769378c07b
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 3 additions and 2 deletions

5
api.py
View File

@ -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')
start_http_server(port=8000, addr='0.0.0.0')
app.run(debug=False, host='0.0.0.0')