Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to determine if user logged in with interactive session or not? #1895

Open
laykun opened this issue Feb 20, 2025 · 1 comment
Open

How to determine if user logged in with interactive session or not? #1895

laykun opened this issue Feb 20, 2025 · 1 comment

Comments

@laykun
Copy link

laykun commented Feb 20, 2025

Problem Statement

I've been trying to re-write my promQL query to determine at any point if a user is logged into the system or not but I can't seem to make it work with the logon collector. This is for a workroom of computers.

Image

The image shows a couple of days worth of logins by several different users, using the same domain. But I as far as I can tell, there's no information here to determine if that user is still logged into the machine? I presume the timestamps are when they logged in, but that's no especially helpful for me, as I'm essentially trying to create a metric for "bums in seats" in a workroom, so I need to know if a computer is being used or if it's idle without a user logged in.

Thank You!

Environment

  • windows_exporter Version: 0.30.2
  • Windows Server Version: Windows 10/11 Enterprise Desktop
@laykun
Copy link
Author

laykun commented Feb 20, 2025

Before this, I was able to rely on the windows_logon_logon_type gauge, it was super useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant