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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user