feat: Fix discovery system critical issues
Resolved multiple critical discovery system issues: ## Discovery System Fixes - Fixed console commands not being discovered on first run - Implemented fallback discovery for empty caches - Added context-aware caching with separate cache keys - Fixed object serialization preventing __PHP_Incomplete_Class ## Cache System Improvements - Smart caching that only caches meaningful results - Separate caches for different execution contexts (console, web, test) - Proper array serialization/deserialization for cache compatibility - Cache hit logging for debugging and monitoring ## Object Serialization Fixes - Fixed DiscoveredAttribute serialization with proper string conversion - Sanitized additional data to prevent object reference issues - Added fallback for corrupted cache entries ## Performance & Reliability - All 69 console commands properly discovered and cached - 534 total discovery items successfully cached and restored - No more __PHP_Incomplete_Class cache corruption - Improved error handling and graceful fallbacks ## Testing & Quality - Fixed code style issues across discovery components - Enhanced logging for better debugging capabilities - Improved cache validation and error recovery Ready for production deployment with stable discovery system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
67
deployment/infrastructure/roles/monitoring/tasks/main.yml
Normal file
67
deployment/infrastructure/roles/monitoring/tasks/main.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
---
|
||||
# Monitoring Role - Main Tasks
|
||||
|
||||
- name: Include OS-specific variables
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
tags:
|
||||
- monitoring
|
||||
- config
|
||||
|
||||
- name: Setup monitoring infrastructure
|
||||
include_tasks: setup-monitoring.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- setup
|
||||
|
||||
- name: Install and configure Node Exporter
|
||||
include_tasks: node-exporter.yml
|
||||
when: node_exporter_enabled | bool
|
||||
tags:
|
||||
- monitoring
|
||||
- node-exporter
|
||||
|
||||
- name: Setup health checks
|
||||
include_tasks: health-checks.yml
|
||||
when: health_checks_enabled | bool
|
||||
tags:
|
||||
- monitoring
|
||||
- health-checks
|
||||
|
||||
- name: Configure system monitoring
|
||||
include_tasks: system-monitoring.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- system
|
||||
|
||||
- name: Setup application monitoring
|
||||
include_tasks: app-monitoring.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- application
|
||||
|
||||
- name: Configure Docker monitoring
|
||||
include_tasks: docker-monitoring.yml
|
||||
when: docker_monitoring_enabled | bool
|
||||
tags:
|
||||
- monitoring
|
||||
- docker
|
||||
|
||||
- name: Setup log monitoring
|
||||
include_tasks: log-monitoring.yml
|
||||
when: log_monitoring_enabled | bool
|
||||
tags:
|
||||
- monitoring
|
||||
- logs
|
||||
|
||||
- name: Configure alerting
|
||||
include_tasks: alerting.yml
|
||||
when: alerting_enabled | bool
|
||||
tags:
|
||||
- monitoring
|
||||
- alerting
|
||||
|
||||
- name: Setup monitoring cleanup
|
||||
include_tasks: cleanup.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- cleanup
|
||||
Reference in New Issue
Block a user