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
|
|
|
|
|
|
|
|
## 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.
|
|
|
|
```
|
2021-03-16 14:10:12 +00:00
|
|
|
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!_
|