Skip to content

collectors UserScriptsCollector

Rob Smith edited this page Oct 29, 2012 · 18 revisions

UserScriptsCollector

Runs third party scripts and collects their output.

Scripts need to be +x and should output metrics in the form of

metric.path.a 1
metric.path.b 2
metric.path.c 3

They are not passed any arguments and if they return an error code, no metrics are collected.

Dependencies

Options - Generic Options

Setting Default Description Type
enabled False Enable collecting these metrics bool
scripts_path /etc/diamond/user_scripts/ Path to find the scripts to run str
byte_unit byte Default numeric output(s) str

Example Output

servers.hostname.example.1 42
servers.hostname.example.2 24
Clone this wiki locally