# # Config file for collectd(1). # Please read collectd.conf(5) for a list of options. # http://collectd.org/ # ############################################################################## # Global # #----------------------------------------------------------------------------# # Global settings for the daemon. # ############################################################################## FQDNLookup true BaseDir "/var/lib/collectd" PIDFile "/var/run/collectd.pid" PluginDir "/usr/lib64/collectd" TypesDB "/usr/share/collectd/types.db" #----------------------------------------------------------------------------# # When enabled, plugins are loaded automatically with the default options # # when an appropriate block is encountered. # # Disabled by default. # #----------------------------------------------------------------------------# AutoLoadPlugin true #----------------------------------------------------------------------------# # When enabled, internal statistics are collected, using "collectd" as the # # plugin name. # # Disabled by default. # #----------------------------------------------------------------------------# CollectInternalStats true #----------------------------------------------------------------------------# # Interval at which to query values. This may be overwritten on a per-plugin # # base by using the 'Interval' option of the LoadPlugin block: # # # # Interval 60 # # # #----------------------------------------------------------------------------# Interval <%= @interval %> MaxReadInterval <%= @max_read_interval %> Timeout <%= @timeout %> ReadThreads <%= @read_threads %> WriteThreads <%= @write_threads %> # Limit the size of the write queue. Default is no limit. Setting up a limit is # recommended for servers handling a high volume of traffic. <%- if @write_queue_limit_high -%> WriteQueueLimitHigh <%= @write_queue_limit_high %> <%- end -%> <%- if @write_queue_limit_low -%> WriteQueueLimitLow <%= @write_queue_limit_low %> <%- end -%> ############################################################################## # Logging # #----------------------------------------------------------------------------# # Plugins which provide logging functions should be loaded first, so log # # messages generated when loading or configuring other plugins can be # # accessed. # ############################################################################## #LoadPlugin syslog #LoadPlugin logfile #LoadPlugin log_logstash # # LogLevel info # File "/var/log/collectd.log" # Timestamp true # PrintSeverity true # # # LogLevel info # File "/var/log/collectd.json.log" # # # LogLevel info # <% if @server_ips != [] -%> # Have collectd send to these servers on server_port <%- @server_ips.each_with_index do |ip, index| -%> Server "<%= ip %>" "<%= @server_ports[index] %>" <%- end -%> <% end -%> LoadPlugin python <%- if @module_path != "" -%> ModulePath "<%= @module_path %>" <%- end -%> <%- @plugins.each do |plugin| -%> Import "<%= plugin %>" <%- end -%> <%- if @log_traces -%> LogTraces <%= @log_traces %> <%- end -%> <%- if @encoding -%> Encoding "<%= @encoding %>" <%- end -%> Interactive false # The default plugin directory <%- if @collectd_d_dir -%> Include "<%= @collectd_d_dir %>" <%- end -%>