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] Filter for multiple unittypes at the same time #16301

Open
electrofloat opened this issue Dec 12, 2024 · 0 comments
Open
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@electrofloat
Copy link

Use Case

I want to use systemd_units to monitor both services AND sockets.

Expected behavior

I can use the unittype filter to add multiple types to it. For example: unittype = "service, socket"

Actual behavior

Currently only one type is accepted at the unittype

Additional info

I am maybe wrong and don't know Go enough, but it seems to me that only 1 unittype is accepted here:
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/systemd_units/systemd_units_linux.go#L151

@electrofloat electrofloat added the feature request Requests for new plugin and for new features to existing plugins label Dec 12, 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