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

Ability to add multiple times the same extra-plugin #57

Closed
gaizeror opened this issue Aug 6, 2018 · 4 comments
Closed

Ability to add multiple times the same extra-plugin #57

gaizeror opened this issue Aug 6, 2018 · 4 comments

Comments

@gaizeror
Copy link
Contributor

gaizeror commented Aug 6, 2018

Is your feature request related to a problem? Please describe.
I can't add the same plugin with different config. For example I want to monitor some services with procstat, multiple procstat configs overrides eachother.

Describe the solution you'd like
Ability to add many configurations of the same plugin

Additional context
Thank you!

@derlucas
Copy link

Seems to be an issue with the release on ansible galaxy i think.
In the master branch there is already the fix mentioned in #30
And in the telegraf-extra-plugin.conf.j2 there is the new style "[[inputs.{{ item.value.plugin | default(item.key) }}]]"
When downloading the role via ansible-galaxy, there is an older template. I guess the release on galaxy is too old.

@dj-wasabi
Copy link
Owner

Hi

I'll add a new version to the Galaxy today. Will close this issue once it is added.

@dj-wasabi
Copy link
Owner

I just pushed a version to the Galaxy. Therefor I close this issue.

@gaizeror
Copy link
Contributor Author

gaizeror commented Aug 14, 2018

@derlucas @dj-wasabi After downloading latest it is yet not working, where am I wrong:
I want to monitor multiple processes with procstat.
example:

    telegraf_plugins_extra:
      procstat:
        config:
          - pattern = "telegraf"
      procstat:
        config:
          - pattern = "sshd"

NVM, found how. whoever interested:

    telegraf_plugins_extra:
      telegraf_service:
        plugin: procstat
        config:
          - pattern = "telegraf"
      sshd_service:
        plugin: "procstat"
        config:
          - pattern = "sshd"

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

3 participants