SIENTIAPDE-1325

SIENTIAPDE-1325 Add OPC server name configuration and update repository handling

- Introduced a new environment variable `OPC_SERVER_NAME` in values.yaml with a default value.
- Updated the OPC class to include `server_name` when initializing OpcRepository.
- Enhanced the configuration builder to retrieve `OPC_SERVER_NAME` from the environment.
- Adjusted OpcRepository to store and utilize the `server_name` for metric emissions.
This commit is contained in:
vitor-aignosi
2025-11-07 09:20:48 -03:00
parent 2245baae62
commit 8d402fb156
4 changed files with 7 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ class OPC(SientiaMonitoring):
for opc_id, server in self.opc_servers.items():
self.opc_repository[opc_id] = OpcRepository(
opc_id=server['id'],
server_name=server['server_name'],
url=server['url'],
logger=self.logger,
server_uri=server['server_uri'],