SIENTIAPDE-1174
Update requirements and environment configurations - Changed the sientia-dataops-library dependency to a relative path in requirements.txt. - Updated image tag to 0.3.0 in values.yaml. - Renamed HTTP_SERVER_PORT to HTTP_METRICS_PORT in app.py and updated its default value to 9090. - Added TAG_WRITTEN_COUNT metric in metrics.py to track writing processes. - Incremented TAG_WRITTEN_COUNT in DataManager upon successful data insertion.
This commit is contained in:
@@ -66,7 +66,7 @@ def signal_handler(_signum, _frame):
|
||||
|
||||
def start_prometheus_server():
|
||||
try:
|
||||
port = int(os.getenv("HTTP_SERVER_PORT", 4840))
|
||||
port = int(os.getenv("HTTP_METRICS_PORT", 9090))
|
||||
start_http_server(port)
|
||||
print(f"Prometheus server started on port {port}.")
|
||||
metrics.APP_UP.labels(pod_id=POD_ID).set(1) # Mark app as UP
|
||||
|
||||
Reference in New Issue
Block a user