prometheus-community / windows_exporter

Prometheus exporter for Windows machines
MIT License
2.9k stars 697 forks source link

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

Open xyzujn opened 2 hours ago

xyzujn commented 2 hours ago

Problem Statement

No response

Environment

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 commented 2 hours ago

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 commented 1 hour ago

Thank You @jkroepke

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