Commit Graph

102 Commits

Author SHA1 Message Date
vitor-aignosi
17d958c666 SIENTIAPDE-1174
SIENTIAPDE-1174 Add pod_id to Ingestor metadata for improved tracking

- Included 'pod_id' in the metadata dictionary of the Ingestor class to enhance tracking capabilities.
2025-07-31 09:12:18 -03:00
vitor-aignosi
5ed6523c51 SIENTIAPDE-1174
Update values.yaml to modify replica count and GITHUB_BRANCH environment variable

- Increased replicaCount from 1 to 3 for improved scalability.
- Updated GITHUB_BRANCH environment variable to SIENTIAPDE-1174-mapear-e-implementar-metricas-a-serem-criadas.
2025-07-31 08:47:52 -03:00
vitor-aignosi
bc7008acdf SIENTIAPDE-1174
Update requirements and environment configurations

- Changed the sientia-dataops-library dependency to a relative path in requirements.txt.
- Updated image tag to 0.3.0 in values.yaml.
- Renamed HTTP_SERVER_PORT to HTTP_METRICS_PORT in app.py and updated its default value to 9090.
- Added TAG_WRITTEN_COUNT metric in metrics.py to track writing processes.
- Incremented TAG_WRITTEN_COUNT in DataManager upon successful data insertion.
2025-07-31 08:30:00 -03:00
vitor-aignosi
716415ab5b SIENTIAPDE-1172
Update dependencies and environment variables

- Updated sientia-dataops-library dependency version to 1.3.5 in requirements.txt.
- Changed image tag to 0.2.7 in values.yaml.
- Updated GITHUB_BRANCH environment variable to SIENTIAPDE-1172-criar-pipeline-de-alertas-orquestrador in values.yaml.
2025-07-29 13:22:18 -03:00
Bruno Domingues
a04bf1cadd Merge pull request #12 from Aignosi/SIENTIAPDE-1163-alterar-dinamica-de-notificacoes-para-usar-o-mongodb-ao-inves-do-kafka
Sientiapde 1163 alterar dinamica de notificacoes para usar o mongodb ao inves do kafka
2025-07-22 10:14:35 -03:00
vitor-aignosi
d9c776907d SIENTIAPDE-1163
Update values.yaml to add metrics service configuration

- Introduced a new 'metrics' service with ClusterIP type, port 9090, and targetPort 9090.
- Updated the serviceMonitor port to reference the new 'metrics' service.
- Changed HTTP_SERVER_PORT environment variable value to 9090 to align with the new metrics service.
2025-07-17 14:58:46 -03:00
vitor-aignosi
9309d7591e SIENTIAPDE-1163
SIENTIAPDE-1163
Refactor Ingestor and DataManager classes to enhance metadata handling

- Updated Ingestor class to include additional metadata fields: 'workflow_name' and 'schema_name'.
- Modified DataManager to accept metadata during initialization.
- Adjusted unit tests to validate the new metadata structure and ensure proper functionality across various managers.
- Removed unused logger initialization in tests for cleaner code.
2025-07-17 14:27:16 -03:00
vitor-aignosi
1dba4f5604 Merge branch 'main' into SIENTIAPDE-1163-alterar-dinamica-de-notificacoes-para-usar-o-mongodb-ao-inves-do-kafka 2025-07-17 12:43:13 -03:00
vitor-aignosi
6ad0c5d768 SIENTIAPDE-1163
Update .gitignore to include git_log and ensure .vscode/ is excluded
2025-07-17 12:42:04 -03:00
vitor-aignosi
d1215344b8 SIENTIAPDE-1163
Update values.yaml to restructure service definitions

- Changed the service configuration to a nested structure under 'services'.
- Introduced 'api' and 'opc' services with individual settings, both initially disabled.
- Updated ports for the 'api' service to 4841 while keeping the 'opc' service at 4840.
2025-07-17 10:52:36 -03:00
Bruno Domingues
c18d6e5142 Add port configuration for serviceMonitor in values.yaml. 2025-07-17 10:52:36 -03:00
vitor-aignosi
3088701be0 SIENTIAPDE-1163
Update sientia-dataops-library dependency version to 1.3.3 in requirements.txt
2025-07-17 10:50:54 -03:00
Bruno Domingues
d27127968a Add port configuration for serviceMonitor in values.yaml. 2025-07-16 17:33:09 -03:00
vitor-aignosi
b87bfc8e68 SIENTIAPDE-1163
Refactor logging statements in Ingestor and app modules to use f-strings for improved readability and consistency. Updated error and info logs to enhance clarity in the Ingestor class.
2025-07-16 11:17:43 -03:00
vitor-aignosi
5132162eaa SIENTIAPDE-1163
Refactor Ingestor and Manager classes to use CoreNotificationHandler and improve metadata handling

- Updated Ingestor class to initialize logger using get_logger and replaced notification handler initialization with metadata dictionary.
- Refactored DataManager, IngestorManager, OpcManager, and ResourceManager classes to inherit from BaseActivity, allowing for consistent logger and notification handler usage.
- Enhanced notification handling by integrating metadata into notification methods across various managers.
- Added .vscode/ to .gitignore to exclude VSCode configuration files.
2025-07-16 10:54:34 -03:00
vitor-aignosi
0885544bc7 SIENTIAPDE-1163
Update values.yaml for image tag and GITHUB_BRANCH

- Updated image tag to "0.2.4" for the latest version.
- Changed GITHUB_BRANCH value to "SIENTIAPDE-1163-alterar-dinamica-de-notificacoes-para-usar-o-mongodb-ao-inves-do-kafka".
- Removed .vscode/settings.json as it is no longer needed.
2025-07-16 10:16:02 -03:00
vitor-aignosi
3e6ab33ef4 SIENTIAPDE-1163
Update requirements and refactor Ingestor class for MongoDB integration

- Updated sientia-dataops-library dependency version to 1.3.0 in requirements.txt.
- Refactored Ingestor class to use CoreNotificationHandler and added MongoDB connection parameters to improve configuration management.
2025-07-16 08:59:24 -03:00
Matheus Demoner
c2f2664622 Merge pull request #11 from Aignosi/SIENTIAPDE-1110-criar-testes-e-2-e
Sientiapde 1110 criar testes e 2 e
2025-07-08 19:11:58 -03:00
vitor-aignosi
1a96ada0e0 SIENTIAPDE-1110
Refactor test assertions for improved readability and consistency

- Updated assertions in test cases for DataManager and OpcManager to enhance readability by formatting long lines.
- Ensured that the expected behavior of metrics logging and message publishing is clearly defined in the tests.
2025-07-08 16:24:11 -03:00
vitor-aignosi
8a5989dddc SIENTIAPDE-1110
shortcut
2025-07-08 15:21:07 -03:00
vitor-aignosi
1512ca98bd SIENTIAPDE-1110
Refactor OpcManager to improve node subscription handling

- Simplified the address node assignment in the OpcManager class by directly using a local variable instead of an instance variable.
- Enhanced debug logging to provide clearer insights into the nodes being subscribed to.
2025-07-08 12:32:21 -03:00
vitor-aignosi
7391ed3ba5 SIENTIAPDE-1110
Refactor OPC Manager metrics logging for improved readability

- Reformatted metrics logging statements in the OpcManager class for better readability and consistency.
- Enhanced debug logging to provide clearer insights into subscription management and connection status.
2025-07-08 12:25:11 -03:00
vitor-aignosi
9d510c5936 SIENTIAPDE-1110
Enhance debug logging in Ingestor class to track changes in managed tags

- Added debug logging to capture changes between new and old managed tags in the Ingestor class, improving traceability of subscription management.
2025-07-08 11:54:19 -03:00
vitor-aignosi
22ed2c8cde SIENTIAPDE-1110
Update GITHUB_BRANCH in values.yaml and remove debug log in DataManager

- Changed GITHUB_BRANCH value to "SIENTIAPDE-1110-criar-testes-e-2-e" in values.yaml.
- Removed unnecessary debug log for skipping messages in DataManager class.
2025-07-08 11:38:32 -03:00
vitor-aignosi
7f88d89849 SIENTIAPDE-1110
Enhance logging in Ingestor class for subscription management

- Added debug logging for subscribing to new slots, resubscribing to modified slots, and unsubscribing from removed slots in the Ingestor class.
2025-07-08 11:35:18 -03:00
Matheus Demoner
725528de45 Merge pull request #10 from Aignosi/error-test
Error test
2025-07-04 16:13:11 -03:00
vitor-aignosi
be7b0d9d8e Merge branch 'main' into error-test 2025-07-04 11:32:56 -03:00
Bruno Domingues
cfc39d82ab SIENTIAPDE-1111: refactor sonarqube pipeline. 2025-07-04 11:23:50 -03:00
Bruno Domingues
53c262329e SIENTIAPDE-1105: add ServiceMonitor configuration for Prometheus metrics collection. 2025-07-04 11:23:50 -03:00
vitor-aignosi
750d947d7e Update MongoDB connection handling in DataManager and enhance IngestorManager configuration
- Updated DataManager to simplify MongoDB connection logic by removing retry loop and adding logging for connection attempts.
- Enhanced IngestorManager to accept MongoDB connection parameters and export_to_kafka flag as part of its initialization.
- Updated requirements.txt to use the latest version of the sientia-dataops-library.
2025-07-03 15:35:38 -03:00
vitor-aignosi
28866ac9c8 Update logging in DataManager to use debug level for message skipping and insertion confirmation
- Changed log level from info to debug for skipping messages to Kafka topic.
- Added debug log for successful message insertion into MongoDB collection.
2025-07-03 14:13:00 -03:00
vitor-aignosi
b0bbf4cf03 Add EXPORT_TO_KAFKA environment variable and update Ingestor class logic
- Introduced EXPORT_TO_KAFKA variable in values.yaml to control Kafka export behavior.
- Updated Ingestor class to parse and set the export_to_kafka attribute based on the environment variable.
2025-07-03 14:10:49 -03:00
vitor-aignosi
cbaa66026c Add support for Kafka export in Ingestor and DataManager classes
- Introduced EXPORT_TO_KAFKA environment variable in Ingestor class.
- Refactored DataManager to conditionally initialize Kafka producer based on export setting.
- Updated IngestorManager to pass Redis configuration as a dictionary.
- Enhanced error handling and logging for Kafka message publishing.
2025-07-03 13:45:09 -03:00
vitor-aignosi
682cc338b5 Refactor MongoDB environment variable names in Ingestor class for consistency with updated configuration 2025-07-01 12:52:14 -03:00
vitor-aignosi
c5b23da373 Update MongoDB configuration in values.yaml and enhance Ingestor class to utilize MongoDB connection parameters 2025-07-01 12:31:46 -03:00
vitor-aignosi
d79f882018 Add MongoDB integration to DataManager, switch Python language server to Jedi, and include pymongo in requirements.txt 2025-07-01 12:19:06 -03:00
Bruno Domingues
762b9072dc SIENTIAPDE-1111: refactor sonarqube pipeline. 2025-06-23 12:49:52 -03:00
Bruno Domingues
3f289e8ddd Add ServiceMonitor configuration for Prometheus metrics collection 2025-06-12 09:57:54 -03:00
Bruno Domingues
0f552c97d6 SIENTIAPDE-1105: add ServiceMonitor configuration for Prometheus metrics collection. 2025-06-12 00:31:41 -03:00
vitor-aignosi
0d03141655 Add debug print for exit_signal state in main loop; update GITHUB_BRANCH to error-test 2025-06-11 10:01:27 -03:00
vitor-aignosi
9bbe828296 test 2025-06-11 09:58:14 -03:00
Bruno Domingues
715d6784ea Merge pull request #8 from Aignosi/SIENTIAPDE-988-criar-ingestor-opc
Sientiapde 988 criar ingestor opc
2025-06-10 11:14:31 -03:00
vitor-aignosi
38273dab13 Update ingestor_manager.py 2025-06-09 16:48:19 -03:00
vitor-aignosi
5edc2983f7 Merge branch 'main' into SIENTIAPDE-988-criar-ingestor-opc 2025-06-09 16:45:45 -03:00
vitor-aignosi
975c640ea8 SIENTIAPDE-988
Update NotificationHandler initialization and change GITHUB_BRANCH in values.yaml
2025-06-09 16:36:29 -03:00
vitor-aignosi
82f3e9358d SIENTIAPDE-988
Refactor variable naming for clarity and update image tag and service settings in values.yaml
2025-06-09 16:31:04 -03:00
Matheus Demoner
f8ab32c345 Merge pull request #7 from Aignosi/SIENTIAPDE-1094-atualizar-versao-da-lib
SIENTIAPDE-1094
2025-06-09 13:11:01 -03:00
vitor-aignosi
a83d4ac728 SIENTIAPDE-1094
Refactor test___init__ to remove unnecessary parameters from notification_handler assertion
2025-06-09 11:30:43 -03:00
vitor-aignosi
1af7e80e5b SIENTIAPDE-1094
Update settings for language services, adjust simulator port, enhance error handling in ingestor, and refine Redis feeder script
2025-06-09 08:42:22 -03:00
Bruno Domingues
112d512a02 Bump sientia-module version to 0.0.8. 2025-06-02 16:42:12 -03:00