SIENTIAPDE-1325

Update image tag and enhance OPC metrics tracking

- Bumped image tag from "1.0.1" to "1.1.0" in values.yaml.
- Added new metrics for OPC connection count and error count in metrics.py.
- Refactored OPC connection handling in opc_repository.py to emit new metrics for connection status, count, and errors.
This commit is contained in:
vitor-aignosi
2025-11-06 16:59:02 -03:00
parent 1695df70ae
commit 507aded950
3 changed files with 25 additions and 7 deletions

View File

@@ -120,6 +120,18 @@ OPC_CONNECTION_STATUS = Gauge(
['pod_id', 'opc_server_id'],
)
OPC_CONNECTION_COUNT = Counter(
'laborious_opc_connection_count',
'Number of connections to the OPC server',
['pod_id', 'opc_server_id'],
)
OPC_CONNECTION_ERROR_COUNT = Counter(
'laborious_opc_connection_error_count',
'Number of errors connecting to the OPC server',
['pod_id', 'opc_server_id'],
)
# ================== Model metrics ==================
MODEL_READ_LAG = Histogram(