Skip to content

feat(plugins/inputs/systemd_units): add pattern support#9665

Merged
sspaink merged 2 commits intoinfluxdata:masterfrom
DavidBuettner:feat/plugins/inputs/systemd_units-addPatternSupport
Aug 26, 2021
Merged

feat(plugins/inputs/systemd_units): add pattern support#9665
sspaink merged 2 commits intoinfluxdata:masterfrom
DavidBuettner:feat/plugins/inputs/systemd_units-addPatternSupport

Conversation

@DavidBuettner
Copy link
Copy Markdown
Contributor

Required for all PRs:

  • Updated associated README.md.
  • [-] Wrote appropriate unit tests:
    - Existing tests replace Linux systemctl with dummy function. Changes only affect behavior of Linux systemctl.
    - Tests would need dummy implementation of systemctl filter functionality -> suggest to keep tests as is.
  • Pull request title or commits are in [conventional commit format]

resolves #9664

This code change extends the existing systemd_units inputs plugin to also support Linux systemctl list-units PATTERN filters.
It adds a respective option for the conf file and parses/forwards it to the os.exec.Command to systemctl

CCLA has been signed and exchanged with @timhallinflux, ICLA has been submitted.

Thank you for feedback/suggestions/acceptance for/of the pull request.
Cheers,
David

Signed-off-by: David Buettner <david.buettner@siemens.com>
Signed-off-by: David Buettner <david.buettner@siemens.com>
@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Aug 23, 2021
Copy link
Copy Markdown
Contributor

@sspaink sspaink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@sspaink sspaink added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Aug 26, 2021
@sspaink sspaink merged commit 4dc2967 into influxdata:master Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugins/inputs/systemd_units): PATTERN support

2 participants