| 49 | |
| 50 | == CollectD == |
| 51 | |
| 52 | Example collectd configuration |
| 53 | {{{ |
| 54 | ############################################################################## |
| 55 | # Global # |
| 56 | #----------------------------------------------------------------------------# |
| 57 | # Global settings for the daemon. # |
| 58 | ############################################################################## |
| 59 | |
| 60 | #Hostname "localhost" |
| 61 | #FQDNLookup true |
| 62 | #BaseDir "/var/lib/collectd" |
| 63 | #PIDFile "/var/run/collectd.pid" |
| 64 | #PluginDir "/usr/lib64/collectd" |
| 65 | TypesDB "/usr/share/collectd/merged_types.db" |
| 66 | |
| 67 | #----------------------------------------------------------------------------# |
| 68 | # When enabled, plugins are loaded automatically with the default options # |
| 69 | # when an appropriate <Plugin ...> block is encountered. # |
| 70 | # Disabled by default. # |
| 71 | #----------------------------------------------------------------------------# |
| 72 | #AutoLoadPlugin false |
| 73 | |
| 74 | #----------------------------------------------------------------------------# |
| 75 | # Interval at which to query values. This may be overwritten on a per-plugin # |
| 76 | # base by using the 'Interval' option of the LoadPlugin block: # |
| 77 | # <LoadPlugin foo> # |
| 78 | # Interval 60 # |
| 79 | # </LoadPlugin> # |
| 80 | #----------------------------------------------------------------------------# |
| 81 | Interval 10 |
| 82 | |
| 83 | #Timeout 2 |
| 84 | #ReadThreads 5 |
| 85 | #WriteThreads 5 |
| 86 | |
| 87 | # Limit the size of the write queue. Default is no limit. Setting up a limit is |
| 88 | # recommended for servers handling a high volume of traffic. |
| 89 | #WriteQueueLimitHigh 1000000 |
| 90 | #WriteQueueLimitLow 800000 |
| 91 | |
| 92 | ############################################################################## |
| 93 | # Logging # |
| 94 | #----------------------------------------------------------------------------# |
| 95 | # Plugins which provide logging functions should be loaded first, so log # |
| 96 | # messages generated when loading or configuring other plugins can be # |
| 97 | # accessed. # |
| 98 | ############################################################################## |
| 99 | |
| 100 | LoadPlugin logfile |
| 101 | <Plugin logfile> |
| 102 | LogLevel info |
| 103 | File "/var/log/collectd/collectd.log" |
| 104 | Timestamp true |
| 105 | PrintSeverity false |
| 106 | </Plugin> |
| 107 | |
| 108 | ############################################################################## |
| 109 | # LoadPlugin section # |
| 110 | #----------------------------------------------------------------------------# |
| 111 | # Lines beginning with a single `#' belong to plugins which have been built # |
| 112 | # but are disabled by default. # |
| 113 | # # |
| 114 | # Lines begnning with `##' belong to plugins which have not been built due # |
| 115 | # to missing dependencies or because they have been deactivated explicitly. # |
| 116 | ############################################################################## |
| 117 | |
| 118 | LoadPlugin cpu |
| 119 | LoadPlugin df |
| 120 | <Plugin df> |
| 121 | MountPoint "/" |
| 122 | IgnoreSelected false |
| 123 | ReportByDevice false |
| 124 | ReportReserved false |
| 125 | ReportInodes true |
| 126 | ValuesAbsolute true |
| 127 | ValuesPercentage true |
| 128 | </Plugin> |
| 129 | LoadPlugin disk |
| 130 | <Plugin disk> |
| 131 | </Plugin> |
| 132 | LoadPlugin interface |
| 133 | <Plugin interface> |
| 134 | Interface "eth0" |
| 135 | IgnoreSelected false |
| 136 | </Plugin> |
| 137 | LoadPlugin load |
| 138 | LoadPlugin memory |
| 139 | LoadPlugin network |
| 140 | <Plugin network> |
| 141 | Server "metrics.clarin.eu" "25826" |
| 142 | </Plugin> |
| 143 | LoadPlugin processes |
| 144 | LoadPlugin users |
| 145 | |
| 146 | Include "/etc/collectd.d" |
| 147 | }}} |