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

windows_exporter - User Details for the Process or Process ID #1705

Open
xyzujn opened this issue Oct 22, 2024 · 3 comments
Open

windows_exporter - User Details for the Process or Process ID #1705

xyzujn opened this issue Oct 22, 2024 · 3 comments

Comments

@xyzujn
Copy link

xyzujn commented Oct 22, 2024

Problem Statement

No response

Environment

  • windows_exporter Version: 0.28
  • Windows Server Version: MS Windows Server 2019 Standard
    Dears,

Can you please let me know if there is a possibility to get the user details for processes who is running those process through some metrics ?

I need to CPU and Memory per User and Process ID, is that possible as well ?

Thnak you,

@jkroepke
Copy link
Member

There is a windows_process_info metric.

You can combine the metric like that:

windows_process_working_set_bytes * on(process_id) group_left(owner) windows_process_info

@xyzujn
Copy link
Author

xyzujn commented Oct 22, 2024

Thank You @jkroepke

I need to CPU and Memory per User and Process ID, is that possible as well ?

@jkroepke
Copy link
Member

untested:

sum by(instance, owner) (rate(windows_process_cpu_time_total{process!='Idle'}[5m])) / on(instance) group_left sum by(instance) (rate(windows_cpu_time_total[5m]) * on(process_id) group_left(owner) windows_process_info) * 100

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

2 participants