windows_exporter/docs/collector.logon.md

37 lines
1.0 KiB
Markdown
Raw Normal View History

2019-08-20 12:26:43 +00:00
# logon collector
The logon collector exposes metrics detailing the active user logon sessions.
|||
-|-
Metric name prefix | `logon`
Classes | [`Win32_LogonSession`](https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-logonsession)
Enabled by default? | No
> :warning: **On some deployments, this collector seems to have some memory/timeout issues**: See [#583](https://github.com/prometheus-community/windows_exporter/issues/583)
2019-08-20 12:26:43 +00:00
## Flags
None
## Metrics
Name | Description | Type | Labels
-----|-------------|------|-------
2020-05-24 18:47:16 +00:00
`windows_logon_logon_type` | Number of active user logon sessions | gauge | status
2019-08-20 12:26:43 +00:00
### Example metric
Query the total number of interactive logon sessions
```
2020-05-24 18:47:16 +00:00
windows_logon_logon_type{status="interactive"}
2019-08-20 12:26:43 +00:00
```
## Useful queries
Query the total number of local and remote (I.E. Terminal Services) interactive sessions.
```
windows_logon_logon_type{status=~"interactive|remote_interactive"}
2019-08-20 12:26:43 +00:00
```
## Alerting examples
_This collector does not yet have alerting examples, we would appreciate your help adding them!_