Commit Graph

149 Commits

Author SHA1 Message Date
Matheus Demoner
36d12bdda8 Merge pull request #6 from Aignosi/feature/SIENTIAPDE-1083
SIENTIAPDE-1083: Add prometheus metrics
2025-05-30 12:08:15 -03:00
Bruno Domingues
0fe2343891 SIENTIAPDE-1083: add prometheus metrics to ingestor_manager. 2025-05-29 17:47:53 -03:00
Bruno Domingues
c49f04ded6 SIENTIAPDE-1083: add prometheus metrics to opc_manager. 2025-05-29 16:52:10 -03:00
Bruno Domingues
03ed5784b1 SIENTIAPDE-1083: add prometheus metrics to resource_manager. 2025-05-29 11:38:57 -03:00
Bruno Domingues
f71b4c7937 SIENTIAPDE-1083: add prometheus metrics to data_manager. 2025-05-28 21:30:28 -03:00
Bruno Domingues
8e332da597 SIENTIAPDE-1083: add prometheus metrics to ingestor. 2025-05-28 17:54:44 -03:00
Bruno Domingues
fff52acf79 SIENTIAPDE-1083: add unit tests for app.py. 2025-05-28 16:15:57 -03:00
Bruno Domingues
12e9151b74 SIENTIAPDE-1083: add unit tests for metrics.py. 2025-05-28 15:42:58 -03:00
Bruno Domingues
14c71580e0 SIENTIAPDE-1083: add prometheus and app metrics. 2025-05-28 14:47:52 -03:00
Matheus Demoner
03470872fa Merge pull request #5 from Aignosi/SIENTIAPDE-1073-complementar-a-doc-do-ingestor-com-instrucoes-de-execucao
SIENTIAPDE-1075
2025-05-22 10:11:05 -03:00
vitor-aignosi
861101ffc6 SIENTIAPDE-1075
Add run instructions for the Ingestor
2025-05-22 10:06:03 -03:00
Matheus Demoner
8b2e158f72 Merge pull request #4 from Aignosi/SIENTIAPDE-1049-lidar-com-erros-de-reconexao-no-ingestor-opc
Sientiapde 1049 lidar com erros de reconexao no ingestor opc
2025-05-21 13:09:36 -03:00
vitor-aignosi
26356c05dd final adjust in replicaCount 2025-05-21 09:46:38 -03:00
vitor-aignosi
019dc33fc9 subscribe fix 2025-05-21 09:46:38 -03:00
vitor-aignosi
2612148455 lease fix 2025-05-21 09:46:38 -03:00
vitor-aignosi
c7dbe3585b SIENTIAPDE-1049
Update ingestor and data manager for improved shutdown handling and logging

- Incremented project version in quality gate configuration.
- Commented out ingestor service in docker-compose for clarity.
- Enhanced main loop in app.py to handle exit signals and exceptions.
- Added shutdown methods in Ingestor and DataManager classes for graceful resource cleanup.
- Updated unit tests to validate shutdown behavior and exception handling.
- Introduced coverage configuration to omit specific files.
2025-05-21 09:46:38 -03:00
vitor-aignosi
92ed3c9cb2 SIENTIAPDE-1049
Fix
2025-05-21 09:46:38 -03:00
vitor-aignosi
2fa1d2175e SIENTIAPDE-1049
Stability fix try
2025-05-21 09:46:38 -03:00
vitor-aignosi
1fa6558986 SIENTIAPDE-1049
Integrity fix
2025-05-21 09:46:38 -03:00
vitor-aignosi
39530f115e SIENTIAPDE-1049
Integrity fix
2025-05-21 09:46:38 -03:00
vitor-aignosi
b03fe75753 SIENTIAPDE-1049
Handling size change
2025-05-21 09:46:38 -03:00
vitor-aignosi
bb4ab7d209 SIENTIAPDE-1049
Refactor logging statements for consistency and clarity; update environment variable parsing to handle string inputs.
2025-05-21 09:46:38 -03:00
vitor-aignosi
9196861033 SIENTIAPDE-1049Enhance OPC connection handling with error logging and update branch in values.yaml 2025-05-21 09:46:38 -03:00
vitor-aignosi
c13d7cf391 log level fix 2025-05-21 09:46:38 -03:00
vitor-aignosi
bab74086c5 Adding new observability fixes 2025-05-21 09:46:38 -03:00
Matheus Demoner
272545bff8 Merge pull request #3 from Aignosi/SIENTIAPDE-988-criar-ingestor-opc
Sientiapde 988 criar ingestor opc
2025-05-05 15:14:00 -03:00
vitor-aignosi
c868fdae98 Merge branch 'main' into SIENTIAPDE-988-criar-ingestor-opc 2025-05-05 14:58:51 -03:00
Bruno Domingues
9ed7677067 Configure quality workflow 2. 2025-05-05 14:53:50 -03:00
Bruno Domingues
9d5c08c976 Configure quality workflow 1. 2025-05-05 14:51:55 -03:00
vitor-aignosi
3a2d488eed Refactor logging in Ingestor and OpcManager to use debug level
- Changed logging statements in Ingestor and OpcManager from info to debug level to reduce log verbosity and improve performance.
- This adjustment aids in better log management while maintaining necessary traceability for debugging purposes.
2025-05-05 14:43:55 -03:00
Bruno Domingues
2cd0552f1f Configure quality workflow 2. 2025-05-05 11:32:12 -03:00
vitor-aignosi
229305402a Update heartbeat and poll interval values in values.yaml
- Increased HEARTBEAT_TTL from 20 to 30 for improved responsiveness.
- Adjusted POLL_INTERVAL from 5 to 10 to optimize polling frequency.
2025-05-05 11:23:16 -03:00
vitor-aignosi
342535b7e7 Enhance OpcManager logging for data change notifications
- Added logging statements to OpcManager to track data change notifications and cycle count resets for monitored tags.
- Improved traceability of events related to OPC cycles, aiding in debugging and monitoring.
2025-05-05 11:10:16 -03:00
Bruno Domingues
dd23f3d17e Configure quality workflow 1. 2025-05-05 10:52:37 -03:00
vitor-aignosi
5f95b6309e SIENTIAPDE-988
Enhance IngestorManager and related tests with notification handling integration

- Added notification_handler parameter to IngestorManager and OpcManager initialization for improved event handling.
- Updated unit tests to include notification_handler in the Ingestor and IngestorManager instantiation, ensuring proper coverage of new functionality.
- Refactored test cases to validate the integration of notification handling across components.
2025-05-05 10:06:05 -03:00
vitor-aignosi
d00078d323 SIENTIAPDE-988
Enhance ingestor and manager classes with notification handling

- Integrated NotificationHandler into Ingestor, DataManager, IngestorManager, and OpcManager for improved error reporting and monitoring.
- Updated methods to send notifications on critical events such as Kafka publishing errors, OPC connection issues, and cycle count warnings.
- Refactored related tests to ensure coverage of new notification functionalities and validate integration with existing components.
- Improved logging and error handling across the system to enhance traceability and operational insights.
2025-04-30 19:28:43 -03:00
vitor-aignosi
3fc3753636 SIENTIAPDE-1017
remove helm chart files and templates for sientia-module
2025-04-28 16:53:50 -03:00
vitor-aignosi
7d0bf2a315 Merge pull request #2 from Aignosi/SIENTIAPDE-1017-criar-helm-generico-para-os-modulos-do-sientia
Sientiapde 1017 criar helm generico para os modulos do sientia
2025-04-28 08:41:51 -03:00
vitor-aignosi
ff87451287 Merge pull request #1 from Aignosi/SIENTIAPDE-988-criar-ingestor-opc
Sientiapde 988 criar ingestor opc
2025-04-28 08:39:56 -03:00
vitor-aignosi
c65c016b91 SIENTIAPDE-1017
Add container ports to deployment and update service configuration
2025-04-28 08:06:44 -03:00
vitor-aignosi
8674a710af SIENTIAPDE-1017
Update liveness and readiness probes, enhance Redis connection, and refine OPC tag data structure
2025-04-25 16:57:55 -03:00
vitor-aignosi
9eb483ee92 SIENTIAPDE-1017
Enhance OPC ingestor with Redis authentication and update Helm chart configurations. Improve README for clarity on Docker and Kubernetes setup.
2025-04-25 13:26:42 -03:00
vitor-aignosi
da079c6320 SIENTIAPDE-988
Refactor ingestor lease management and update Docker configurations

- Updated CMD in Dockerfile to use the correct application entry point.
- Added docker compose command to remove volumes in README.
- Removed unnecessary restart policy from ingestor service in docker-compose.yaml.
- Refactored manage_leases method in Ingestor class to improve clarity and parameter naming.
- Added get_number_of_leases method in IngestorManager to retrieve active leases.
- Implemented get_all_leases method in ResourceManager to fetch active leases from Redis.
- Enhanced unit tests for lease management in test_ingestor_manager and test_resource_manager.
2025-04-24 08:42:56 -03:00
vitor-aignosi
b9ef69a865 SIENTIAPDE-988
Refactor OpcManager initialization and unsubscribe method; enhance logging

- Removed the `initialize_from_config` method from `OpcManager` class and adjusted the constructor to handle configuration directly.
- Improved the `unsubscribe` method to include detailed logging for non-existent subscriptions.
- Updated tests in `test_opc_manager.py` to reflect changes in the `OpcManager` class.
- Commented out Docker-related fixtures in `conftest.py` for potential future use.
- Enhanced test coverage in `test_single_node.py` and `test_data_manager.py` with additional scenarios and assertions.
- Introduced new methods in `Ingestor` and `IngestorManager` classes to manage server subscriptions and leases more effectively.
- Added new tests for `Ingestor` class to validate initialization and slot management logic.
- Implemented logging improvements across various classes to ensure better traceability of actions and errors.
2025-04-23 18:24:49 -03:00
vitor-aignosi
4208412eca SIENTIAPDE-988
Add temporary functiontal tests, that must be removed soon.

Refactor tests: Remove outdated resource manager tests and add functional tests with Docker and Kafka integration

- Deleted existing unit tests for ResourceManager.
- Introduced new functional tests for single node operations with Redis and Kafka.
- Added Docker Compose setup for test environment.
- Implemented fixtures for Redis and Kafka consumers.
- Created comprehensive tests for data publishing and slot management.
- Added unit tests for DataManager and IngestorManager with mocked dependencies.
- Included tests for OpcManager covering connection, subscription, and data change notifications.
2025-04-22 17:56:54 -03:00
vitor-aignosi
fa51d142e8 SIENTIAPDE-988
Enhance README and Docker setup; improve IngestorManager and DataManager functionality, add error handling, and implement unit tests for OPC initialization and subscription management.
2025-04-17 17:13:13 -03:00
vitor-aignosi
4e919a08be SIENTIAPDE-988 Implement core functionality for OPC ingestor, including main execution flow, IngestorManager methods, and OPC server management. Add unit tests for IngestorManager and OPCManager. 2025-04-16 17:02:26 -03:00
vitor-aignosi
988ee65fbf SIENTIAPDE-988
Implement initial structure for data ingestion with Kafka and OPC UA integration

- Added DataManager for Kafka message handling
- Introduced IngestorManager to manage data ingestion processes
- Created OpcManager for OPC UA client interactions
- Developed ResourceManager for Redis-based resource management
- Established testing framework with unit tests for DataManager and OpcManager
- Configured project settings for Python testing with pytest
2025-04-15 17:00:04 -03:00
vitor-aignosi
7e58d9b6fa Initial commit 2025-04-11 15:44:45 -03:00