Skip to content

I/O, threads, and platform-specific metrics

Threads, descriptors, page faults, and context switches

Display name JSON field Capability ID Unit Kind Platforms
Threads thread_count process.threads.count count Gauge macOS, Linux, Windows
Open file descriptors open_file_descriptors process.open_descriptors.count count Gauge macOS, Linux
Open handles (Windows) handles_count (ProcessPlatformMetrics) process.handles.count count Gauge Windows
Minor page faults minor_page_faults process.page_faults.minor_total count Cumulative counter macOS, Linux
Major page faults major_page_faults process.page_faults.major_total count Cumulative counter macOS, Linux
Voluntary context switches voluntary_context_switches process.context_switches.voluntary_total count Cumulative counter macOS, Linux, Windows
Involuntary context switches involuntary_context_switches process.context_switches.involuntary_total count Cumulative counter macOS, Linux, Windows

Disk and logical I/O

Display name JSON field Capability ID Unit Kind Source Platforms
Logical read / write bytes read_bytes / write_bytes process.io.logical_read/write_bytes_total bytes Cumulative counter gopsutil Linux, Windows (nulled on macOS)
Disk read / write bytes disk_read_bytes / disk_write_bytes process.io.disk_read/write_bytes_total bytes Cumulative counter macOS: proc_pid_rusage; Linux: /proc/<pid>/io macOS (cgo), Linux (nulled on Windows)
Read / write operations read_operations / write_operations process.io.read/write_operations_total count Cumulative counter gopsutil macOS, Linux, Windows

Linux cgroup v2 resource metrics (process.resource)

On Linux, cored/internal/platform/linux_resource.go reads /proc/<pid>/cgroup (unified cgroup v2 0::...) under /sys/fs/cgroup:

JSON field Cgroup file Unit Kind
cpu_quota_cores cpu.max cores Snapshot
cpu_usage_seconds_total cpu.stat (usage_usec) seconds Cumulative counter
cpu_throttled_seconds_total cpu.stat (throttled_usec) seconds Cumulative counter
memory_current_bytes memory.current bytes Gauge
memory_limit_bytes memory.max bytes Snapshot
memory_oom_total memory.events (oom) count Cumulative counter
memory_oom_kill_total memory.events (oom_kill) count Cumulative counter

On Windows, Job Object fields (job_cpu_time_seconds_total, job_memory_usage_bytes, job_process_count) are defined in schema but marked not_collected (Daemonitor does not create Job Objects). On macOS, cgroup metrics are not_collected.

Host-level metrics (/v1/host and daemonitor-cli host)

Metric JSON field Platforms Source
Logical CPUs & CPU % logical_processors, cpu_usage_percent macOS, Linux, Windows gopsutil
Host memory & swap memory_total_bytes, memory_available_bytes, memory_used_bytes, swap_total_bytes, swap_used_bytes macOS, Linux, Windows gopsutil
Load average load1, load5, load15 macOS, Linux, Windows gopsutil
Memory pressure memory_pressure_level (normal/warn/critical/unknown) macOS (cgo) sysctlbyname("kern.memorystatus_vm_pressure_level")
Thermal state thermal_state (nominal/moderate/heavy/trapping/sleeping/unknown) macOS (cgo) notify_get_state("com.apple.system.thermalpressurelevel")
Pressure Stall Information (PSI) psi_cpu, psi_memory, psi_io (some_avg10/60/300, full_avg10/60/300) Linux /proc/pressure/{cpu,memory,io}
System commit commit_used_bytes, commit_limit_bytes Windows kernel32.dll!GlobalMemoryStatusEx