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

Monitor user unit services #134

Open
Lusitaniae opened this issue Jul 19, 2024 · 2 comments
Open

Monitor user unit services #134

Lusitaniae opened this issue Jul 19, 2024 · 2 comments

Comments

@Lusitaniae
Copy link

In some cases I want to monitor systemd services setup as a user unit

sudo su -l user1

systemctl status --user app1

checking the systemd status from outside won't work

@newskooler
Copy link

I have the same issue and I struggle to get it working :( i am running systemd exporter as root and expect it to get all metric for root and all users.

@Lusitaniae
Copy link
Author

I end up making systemd-exporter run in the same user as the service being monitored

and adding

--systemd.collector.user

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

No branches or pull requests

2 participants