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

[[inputs.systemd_units]] scope="user" should support explicitly setting users other than telegraf #16047

Open
daniel-trnk opened this issue Oct 20, 2024 · 0 comments
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@daniel-trnk
Copy link

Use Case

Collect systemd unit metrics for systemd units run with a user scope by users other than the telegraf user.

Since #15458, [[inputs.systemd_units]] allows gathering metrics on systemd units run with a user scope in addition to the default system scope. However, it does not allow explicitly setting a user and instead takes the telegraf user.

In most cases, however, relevant services that need to me observed are not run as the telegraf user, but as other users on the system.

Expected behavior

Allow a config like

 scope = "user"
 user = "prod"

Set the user for the systemd user scope unit metrics collection to that user instead of the telegraf user.

Actual behavior

User is set to the current telegraf user.

Additional info

No response

@daniel-trnk daniel-trnk added the feature request Requests for new plugin and for new features to existing plugins label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

1 participant