Hi,

Is there a recommended way for services not running as root (ie. with User=) to
expose metrics to systemd-report?  /run/systemd/report is only writable by root.

Workarounds I've considered:

* Use a socket unit, link it to my service with Sockets=
* Create a user-owned subdirectory in /run/systemd/report
* Use the per-user manager (/run/user/.../systemd/report)
* Create the socket in ExecStartPre=! and stash it in the fd store

Did I miss something more obvious?  Of the above, only the socket unit really
feels like a good option to me.

Thanks,
Alex

Reply via email to