Updated version of #1263 rebased on current master and with more documentation
Scollector features: "-" patterns, httpunit time_total + Freq setting.
Negative filter patterns ("-" prefix),
Added time_total metric to httpunit collector,
Freq setting for HTTPUnit collectors.
cmd/scollector: sort constants in collectors.go to try and prevent me…
cmd/scollector: Use * in -f to include all non-excluded collectors
also add a log message when metrics are being filtered since I spent 20 minutes trying to figure out why my -p and -f tests were not working
this seems a bit odd to me. If they didn't set it, and it was zero, I would understand. But if they set 15 expecting it to be seconds or minutes or who knows what, 5 mins is an odd default. Maybe error with a helpful message?
We use time.ParseDuration in some places, but apparently not others. Is a number really better than a duration string if you have to look up the docs to know it is seconds?
Other than craig being confused about timings, it looks good to me.
cmd/scollector: change HTTPUnit.Freq to duration string
@captncraig I changed it to use a duration string... will be clearer in the config files