Logo
Explore Help
Sign In
vasily/TCPDashboard
1
0
Fork 0
You've already forked TCPDashboard
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
TCPDashboard/config/constants/system_health_constants.py

19 lines
383 B
Python
Raw Normal View History

Add system health monitoring features with modular callbacks - Introduced a new `system_health_constants.py` file to define thresholds and constants for system health metrics. - Refactored existing system health callbacks into modular components, enhancing maintainability and clarity. - Implemented dynamic loading of time range options in `charts.py`, improving flexibility in time range selection. - Added detailed documentation for new callback functions, ensuring clarity on their purpose and usage. - Enhanced error handling and logging practices across the new modules to ensure robust monitoring and debugging capabilities. These changes significantly improve the architecture and maintainability of the system health monitoring features, aligning with project standards for modularity and performance.
2025-06-11 19:33:08 +08:00
CAPACITY_GOOD_THRESHOLD = 70
CAPACITY_WARNING_THRESHOLD = 85
CPU_GOOD_THRESHOLD = 80
CPU_WARNING_THRESHOLD = 90
MEMORY_GOOD_THRESHOLD = 80
MEMORY_WARNING_THRESHOLD = 90
DISK_GOOD_THRESHOLD = 70
DISK_WARNING_THRESHOLD = 85
DATA_FRESHNESS_RECENT_MINUTES = 5
DATA_FRESHNESS_STALE_HOURS = 1
DATABASE_RECENT_ACTIVITY_HOURS = 1
DATABASE_LARGEST_TABLES_LIMIT = 5
BYTE_TO_GB = 1024**3
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 159ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API