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

Language-agnostic Plugins #24

Closed
trehn opened this issue Jun 23, 2015 · 6 comments
Closed

Language-agnostic Plugins #24

trehn opened this issue Jun 23, 2015 · 6 comments

Comments

@trehn
Copy link
Contributor

trehn commented Jun 23, 2015

Does Telegraf plan to allow users to write plugins in any language? Being able to quickly write something in Bash or Python would probably make a lot of ops people happy. Quite often I only need to collect a measurement once an hour or so, so the extra overhead would not be an issue at all.

Maybe this could be implemented as a plugin that just runs a configured list of commands with some configuration in env vars.

@atmaniak
Copy link

It could also be nice to be able to specify a different duration between poll for each plugin.

@evanphx
Copy link
Contributor

evanphx commented Jun 24, 2015

@atmaniak you can do that already, check out Interval under https://github.com/influxdb/telegraf#plugin-options

@evanphx
Copy link
Contributor

evanphx commented Jun 24, 2015

@trehn It certainly could be implemented via an exec plugin that takes a list of programs to run. If they output JSON to stdout it should be easy enough to allow them to pass any number of values back as well.

@zepouet
Copy link
Contributor

zepouet commented Jul 9, 2015

Hello

@evanphx is it possible to use an unix socket to do communication between differents langages ? I think it is a good way to have an universal plugin to gather metrics ?
The problem is for other environnement like windows... but for the moment I use it under MacOS and Linux.

If you like the idea, i could do a pull request about it.

Best regards,
Nicolas

@sparrc
Copy link
Contributor

sparrc commented Aug 5, 2015

Sounds like a good idea, marking it as an enhancement request

@sparrc
Copy link
Contributor

sparrc commented Aug 6, 2015

see PR #92

@sparrc sparrc closed this as completed Aug 6, 2015
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

5 participants