ncabatoff / process-exporter

Prometheus exporter that mines /proc to report on selected processes
MIT License
1.67k stars 265 forks source link

Getting UIDs instead of user names #302

Open jmcastelo opened 3 months ago

jmcastelo commented 3 months ago

We are configuring the exporter using: - name: "{{.ExeBase}};{{.Username}}".

And we have configured scraping in Prometheus such that we relabel the groupname source label with regex "(.*);(.*)" to get both processname and username labels. But the username label ends up referring to the UIDs, not the user names. We get for example: process1;1024.

Our system uses a centralized LDAP to manage accounts and the exporter runs on each node. With previous versions of the exporter we did not have this issue.

Any idea of what could be happening and how to get user names instead of UIDs?

jmcastelo commented 3 months ago

After building the exporter manually the problem has been solved. Apparently the ready made binary did not work for us.