-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature]: System Uptime Monitoring #217
Copy link
Copy link
Closed
Labels
area/metricsMetric collection and processingMetric collection and processingarea/platformPlatform-specific implementationPlatform-specific implementationenhancementNew feature or requestNew feature or requestpriority/lowLow priority - Nice to haveLow priority - Nice to havesize/SSmall - Less than 1 day of workSmall - Less than 1 day of work
Description
Metadata
Metadata
Assignees
Labels
area/metricsMetric collection and processingMetric collection and processingarea/platformPlatform-specific implementationPlatform-specific implementationenhancementNew feature or requestNew feature or requestpriority/lowLow priority - Nice to haveLow priority - Nice to havesize/SSmall - Less than 1 day of workSmall - Less than 1 day of work
What
Implement system uptime monitoring to track boot time and system availability.
Why
Where
src/platform/linux_metrics.cpp,src/platform/windows_metrics.cpp,src/platform/macos_metrics.cppsystem_resource_collector.h(can extend existing collector)How
Technical Approach
system_resource_collectoror create standaloneuptime_collector/proc/uptimeor usesysinfo()syscallsysctl(KERN_BOOTTIME)GetTickCount64()orQueryPerformanceCounter()system_uptime_seconds: Time since bootsystem_boot_timestamp: Unix timestamp of last bootsystem_boot_count: (if available) Number of boots since installAcceptance Criteria
/proc/uptimesystem_uptime_seconds(gauge)system_boot_timestamp(gauge)Platform APIs Reference
/proc/uptime,sysinfo()sysctl(KERN_BOOTTIME)GetTickCount64()Size Estimate
size/S- Straightforward implementation using well-documented OS APIs