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

@@ -30,12 +30,12 @@ PREDICTION_RESPONSE_TIME_MONITOR = Histogram(
PREDICTION_OPC_WRITING_COUNT = Counter(
"laborious_prediction_opc_writing_count",
"Number of predictions written to the OPC server",
CORE_LABELS,
[CORE_LABELS, "opc_server_id"],
)
PREDICTION_OPC_WRITING_RESPONSE_TIME_MONITOR = Histogram(
"laborious_prediction_opc_writing_response_time_monitor",
"Current response time of each prediction written to the OPC server",
CORE_LABELS,
[CORE_LABELS, "opc_server_id"],
buckets=[0.01, 0.05, 0.1, 0.2, 0.5, 1.0, 2.0, 5.0, 10.0]
)