Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
uptime_collector.h File Reference

System uptime monitoring collector. More...

#include <atomic>
#include <chrono>
#include <cstdint>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "../interfaces/metric_types_adapter.h"
#include "../plugins/collector_plugin.h"
Include dependency graph for uptime_collector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::monitoring::uptime_metrics
 Aggregated uptime metrics for the system. More...
 
class  kcenon::monitoring::uptime_info_collector
 Uptime data collector using platform abstraction layer. More...
 
class  kcenon::monitoring::uptime_collector
 System uptime monitoring collector implementing collector_plugin interface. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::monitoring
 
namespace  kcenon::monitoring::platform
 

Detailed Description

System uptime monitoring collector.

This file provides system uptime monitoring using platform-specific APIs. Tracks boot time, uptime duration, and system availability for SLA compliance and stability analysis.

Platform APIs:

  • Linux: /proc/uptime or sysinfo() syscall
  • macOS: sysctl(KERN_BOOTTIME)
  • Windows: GetTickCount64()

Definition in file uptime_collector.h.