SIENTIAPDE-1169

Update OPC metrics to include opc_server_id for enhanced tracking
This commit is contained in:
vitor-aignosi
2025-08-18 14:15:22 -03:00
parent 366d406689
commit e567b8d0a7
2 changed files with 6 additions and 4 deletions

View File

@@ -266,7 +266,8 @@ class OpcRepository():
metrics.PREDICTION_OPC_WRITING_COUNT.labels(
pod_id=self.pod_id,
model_name=metadata['model_name'],
pipeline_name=metadata['workflow_name']
pipeline_name=metadata['workflow_name'],
opc_server_id=self.id
).inc()
end_time = time.time()
@@ -274,7 +275,8 @@ class OpcRepository():
metrics.PREDICTION_OPC_WRITING_RESPONSE_TIME_MONITOR.labels(
pod_id=self.pod_id,
model_name=metadata['model_name'],
pipeline_name=metadata['workflow_name']
pipeline_name=metadata['workflow_name'],
opc_server_id=self.id
).observe(response_time)
except Exception as e: