Skip to content

collectors UserScriptsCollector

Rob Smith edited this page Aug 11, 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
  • enabled: Enable collecting these metrics
  • scripts_path: Path to find the scripts to run
  • byte_unit: Default numeric output(s)

Example Output

servers.hostname.example.1 42
servers.hostname.example.2 24

Clone this wiki locally