windows_exporter/docs/collector.os.md

39 lines
2.7 KiB
Markdown
Raw Normal View History

2020-05-24 18:47:16 +00:00
# os collector
The os collector exposes metrics about the operating system
|||
-|-
Metric name prefix | `os`
Classes | [`Win32_OperatingSystem`](https://msdn.microsoft.com/en-us/library/aa394239)
Enabled by default? | Yes
## Flags
None
## Metrics
2024-09-10 22:34:10 +00:00
| Name | Description | Type | Labels |
|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------|
| `windows_os_info` | Contains full product name & version in labels. Note that the `major_version` for Windows 11 is "10"; a build number greater than 22000 represents Windows 11. | gauge | `product`, `version`, `major_version`, `minor_version`, `build_number` |
| `windows_os_paging_limit_bytes` | Total number of bytes that can be stored in the operating system paging files. 0 (zero) indicates that there are no paging files | gauge | None |
| `windows_os_paging_free_bytes` | Number of bytes that can be mapped into the operating system paging files without causing any other pages to be swapped out | gauge | None |
2020-05-24 18:47:16 +00:00
2024-09-10 22:34:10 +00:00
2020-05-24 18:47:16 +00:00
### Example metric
```
2024-09-10 22:34:10 +00:00
# HELP windows_os_hostname Labelled system hostname information as provided by ComputerSystem.DNSHostName and ComputerSystem.Domain
# TYPE windows_os_hostname gauge
windows_os_hostname{domain="",fqdn="PC",hostname="PC"} 1
# HELP windows_os_info Contains full product name & version in labels. Note that the "major_version" for Windows 11 is \\"10\\"; a build number greater than 22000 represents Windows 11.
# TYPE windows_os_info gauge
windows_os_info{build_number="19045",major_version="10",minor_version="0",product="Windows 10 Pro",revision="4842",version="10.0.19045"} 1
2020-05-24 18:47:16 +00:00
```
2024-09-10 22:34:10 +00:00
## Useful queries
_This collector does not yet have useful queries, we would appreciate your help adding them!_
2020-05-24 18:47:16 +00:00
## Alerting examples
2024-09-10 22:34:10 +00:00
_This collector does not yet have alerting examples, we would appreciate your help adding them!_