windows_exporter/docs/collector.system.md

49 lines
3.4 KiB
Markdown
Raw Normal View History

2020-05-24 18:47:16 +00:00
# system collector
The system collector exposes metrics about ...
|||
-|-
Metric name prefix | `system`
2024-09-10 22:34:10 +00:00
Data source | Performance Counters
2020-05-24 18:47:16 +00:00
Enabled by default? | Yes
## Flags
None
## Metrics
2024-09-10 22:34:10 +00:00
| Name | Description | Type | Labels |
|---------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------|
| `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 |
| `windows_system_process_limit` | The size of the user-mode portion of the virtual address space of the calling process, in bytes. This value depends on the type of process, the type of processor, and the configuration of the operating system. | gauge | None |
| `windows_system_processor_queue_length` | Number of threads in the processor queue. There is a single queue for processor time even on computers with multiple processors. | gauge | None |
| `windows_system_system_calls_total` | Total combined calls to Windows NT system service routines by all processes running on the computer | counter | None |
| `windows_system_system_up_time` | Time of last boot of system | gauge | None |
| `windows_system_threads` | Number of Windows system [threads](https://en.wikipedia.org/wiki/Thread_(computing)) | gauge | None |
2020-05-24 18:47:16 +00:00
### Example metric
Show current number of system threads
```
windows_system_threads{instance="localhost"}
```
2024-09-10 22:34:10 +00:00
Show current number of processes
```
windows_system_processes{instance="localhost"}
```
2020-05-24 18:47:16 +00:00
## Useful queries
Find hosts that have rebooted in the last 24 hours
```
time() - windows_system_system_up_time < 86400
```
## Alerting examples
_This collector does not yet have alerting examples, we would appreciate your help adding them!_