anderson-ufrj
commited on
Commit
·
7a87af3
1
Parent(s):
faea3c1
fix: resolve module conflict for monitoring package
Browse files- Rename monitoring.py to monitoring_service.py to avoid conflict
- Create __init__.py for monitoring package
- Update import in orchestrator.py
- Fixes ModuleNotFoundError for slo_monitor
src/infrastructure/monitoring/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Monitoring infrastructure package."""
|
| 2 |
+
|
| 3 |
+
from .slo_monitor import *
|
| 4 |
+
|
| 5 |
+
__all__ = [
|
| 6 |
+
"slo_monitor",
|
| 7 |
+
"SLOTarget",
|
| 8 |
+
"SLOType",
|
| 9 |
+
"TimeWindow",
|
| 10 |
+
"record_api_request",
|
| 11 |
+
"record_investigation_result",
|
| 12 |
+
"record_agent_task",
|
| 13 |
+
"record_database_query"
|
| 14 |
+
]
|
src/infrastructure/{monitoring.py → monitoring_service.py}
RENAMED
|
File without changes
|
src/infrastructure/orchestrator.py
CHANGED
|
@@ -19,7 +19,7 @@ import structlog
|
|
| 19 |
# Import all infrastructure components
|
| 20 |
from .database import get_database_manager, cleanup_database, DatabaseManager
|
| 21 |
from .cache_system import get_cache_manager, cleanup_cache, AdvancedCacheManager
|
| 22 |
-
from .
|
| 23 |
from .agent_pool import get_agent_pool_manager, cleanup_agent_pool, AgentPoolManager
|
| 24 |
|
| 25 |
# Import ML components
|
|
|
|
| 19 |
# Import all infrastructure components
|
| 20 |
from .database import get_database_manager, cleanup_database, DatabaseManager
|
| 21 |
from .cache_system import get_cache_manager, cleanup_cache, AdvancedCacheManager
|
| 22 |
+
from .monitoring_service import get_monitoring_manager, cleanup_monitoring, ObservabilityManager
|
| 23 |
from .agent_pool import get_agent_pool_manager, cleanup_agent_pool, AgentPoolManager
|
| 24 |
|
| 25 |
# Import ML components
|