-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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 | ||
-----|-------------|------|------- | ||
`wmi_logon_logon_type` | Number of active user logon sessions | gauge | status | ||
|
||
### Example metric | ||
Query the total number of interactive logon sessions | ||
``` | ||
wmi_logon_logon_type{status="interactive"} | ||
``` | ||
|
||
## Useful queries | ||
Query the total number of local and remote (I.E. Terminal Services) interactive sessions. | ||
``` | ||
wmi_logon_logon_type{status=~"interactive|remoteinteractive"} | ||
``` | ||
|
||
## Alerting examples | ||
_This collector does not yet have alerting examples, we would appreciate your help adding them!_ |