mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-27 14:09:05 +01:00
process: report owner label as DOMAIN\user (#2515)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1b4c0943a6
commit
f681f87b6c
@@ -483,7 +483,7 @@ func (c *Collector) getProcessOwner(logger *slog.Logger, hProcess windows.Handle
|
||||
if err != nil {
|
||||
owner = sid
|
||||
} else {
|
||||
owner = fmt.Sprintf(`%s\%s`, account, domain)
|
||||
owner = fmt.Sprintf(`%s\%s`, domain, account)
|
||||
}
|
||||
|
||||
c.lookupCache.Store(sid, owner)
|
||||
|
||||
Reference in New Issue
Block a user