From: Pavel Rochnyak Date: Tue, 30 Apr 2019 07:54:53 +0000 (+0700) Subject: Merge pull request #3001 from usev6/write_graphite_reverse_host X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=1009f2630e9a4a22df9d4b046f22065dbbf8b1b2;hp=-c Merge pull request #3001 from usev6/write_graphite_reverse_host write_graphite plugin: Add option to reverse host --- 1009f2630e9a4a22df9d4b046f22065dbbf8b1b2 diff --combined src/collectd.conf.pod index 2976f6df,353a5062..ce7f725e --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@@ -1656,24 -1656,15 +1656,24 @@@ Defaults to B =head2 Plugin C -This plugin doesn't have any options. It reads +This plugin is available on Linux and FreeBSD only. It doesn't have any +options. On Linux it reads F (for the first CPU installed) to get the current CPU frequency. If this file does not exist make sure B (L) or a similar tool is installed and an "cpu governor" (that's a kernel module) is loaded. -If the system has the I kernel module loaded, this plugin reports -the rate of p-state (cpu frequency) transitions and the percentage of time spent -in each p-state. +On Linux, if the system has the I kernel module loaded, this +plugin reports the rate of p-state (cpu frequency) transitions and the +percentage of time spent in each p-state. + +On FreeBSD it does a sysctl dev.cpu.0.freq and submits this as instance 0. +At this time FreeBSD only has one frequency setting for all cores. +See the BUGS section in the FreeBSD man page for cpufreq(4) for more details. + +On FreeBSD the plugin checks the success of sysctl dev.cpu.0.freq and +unregisters the plugin when this fails. A message will be logged to indicate +this. =head2 Plugin C @@@ -9594,6 -9585,7 +9594,7 @@@ Synopsis LogSendErrors true Prefix "collectd" UseTags false + ReverseHost false @@@ -9705,6 -9697,30 +9706,30 @@@ are not used Default value: B. + =item B B|B + + If set to B, the (dot separated) parts of the B field of the + I will be rewritten in reverse order. The rewrite happens I + special characters are replaced with the B. + + This option might be convenient if the metrics are presented with Graphite in a + DNS like tree structure (probably without replacing dots in hostnames). + + Example: + Hostname "node3.cluster1.example.com" + LoadPlugin "cpu" + LoadPlugin "write_graphite" + + + EscapeCharacter "." + ReverseHost true + + + + result on the wire: com.example.cluster1.node3.cpu-0.cpu-idle 99.900993 1543010932 + + Default value: B. + =back =head2 Plugin C