system: read the boot time from the kernel on every scrape (#2690)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-11 20:47:11 +02:00
committed by GitHub
parent 9869fb12d1
commit be5036dfa8
5 changed files with 139 additions and 30 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# system collector
The system collector exposes metrics about ...
The system collector exposes system-wide metrics of the System performance counter object, such as context switches, system calls, processes and threads, and the system boot time.
|||
-|-
@@ -16,7 +16,7 @@ None
| Name | Description | Type | Labels |
|----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------|
| `windows_system_boot_time_timestamp` | Unix timestamp of last system boot | gauge | None |
| `windows_system_boot_time_timestamp` | Unix timestamp of last system boot, in whole seconds. Follows clock corrections | gauge | None |
| `windows_system_context_switches_total` | Total number of [context switches](https://en.wikipedia.org/wiki/Context_switch) | counter | None |
| `windows_system_exception_dispatches_total` | Total exceptions dispatched by the system | counter | None |
| `windows_system_processes` | Number of process contexts currently loaded or running on the operating system | gauge | None |