RHInception / jsonstats

system stats over rest in json (buzzzzwords here)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rfe: configurable 'extra plugins' parameter

tbielawa opened this issue · comments

Either read from a config file, or given on the CLI.

It would be nice to eventually provide the ability to load a directory up with custom plugins and tell the server to load every package/module in that path.

This could be provided via another command line option

Example:

jsonstatsd --extra-plugins /foo/bar

Additional Requirements:

Must update the etc/sysconfig/jsonstatsd config file with comments referencing this new option.

Why not store all plugins (custom or not) inside a single directory such as /usr/share? Someone wanting to implement their own plugin could potentially stroll right in there, pick the closest existing plugin to what they want to do, and start hacking away without worrying with moving files around. Keep it simple.

This should accept typical compound (colon separated) style paths, i.e.

/first/path

as well as

/first/path:/second/path:/third/path