write_riemann: send notification message
Add ReportByCpu and ValuesPercentage for cpu plugin
Graphite deals poorly with metric names containing quotes.
Sanitize graphite metrics with our own escaping function, better suited for this use-case than the one in `utils_parse_option`
Thanks for Mirko and Sebastian to agreeing to this licensing!
Signed-off-by: Ruben Kerkhof <email@example.com>
Report used, max and percent values for conntrack consumption
ReportByCpu defaults to true, ValuesPercentage to false This enables the following use cases: - ReportByCpu false: emits normalized percentage values - ValuesPercentage true: emits percentage values - default: send per core ticks, as previously
This takes calculation of percentages off of our hands.
This function was used only by swap_submit_derive(), which was declared conditionally. This resulted in "defined but not used" warnings, e.g. on FreeBSD.
Cleaner and slightly more efficient (3.8% faster) version of escape_slashes(). This function is quite hot with, depending on the configuration, between 1.2% and 2.6% of total CPU time spent here.
cache_compare() is one of the hottest functions in collectd. Depending how many metrics collectd handles (how deep the tree is) it gets called an order of magnitude or two more often than the number of metrics handled. With 100k metrics, about 6.6% of the CPU time were spent within cache_compare(), with this commit this reduces to 6.3% (that's, uhm, 4.7% faster?).