# Installed by Browbeat Ansible Installer # Config type: {{config_type}} # Interval default is 10s Interval {{collectd_interval}} # Hostname for this machine, if not defined, use gethostname(2) system call {% if not collectd_prometheus %} Hostname "{{inventory_hostname}}" {% endif %} {% if collectd_prometheus %} Hostname "{{prometheus_prefix}}_{{inventory_hostname}}" {% endif %} # Loaded Plugins: LoadPlugin "logfile" File "/var/log/collectd.log" LogLevel "info" PrintSeverity true Timestamp true LoadPlugin write_graphite LoadPlugin tail LoadPlugin unixsock # Open unix domain socket for collectdctl SocketFile "/var/run/collectd-unixsock" SocketGroup "collectd" SocketPerms "0770" DeleteSocket true # Graphite Host Configuration {% if collectd_graphite %} Host "{{graphite_host}}" Port "{{collectd_write_graphite_port}}" Prefix "{{graphite_prefix}}." Protocol "tcp" LogSendErrors true StoreRates true AlwaysAppendDS false EscapeCharacter "_" {% endif %} # Prometheus Host Configuration {% if collectd_prometheus %} Server "{{prometheus_host}}" "{{prometheus_port}}" {% endif %} {% if ovs_flows_monitoring %} Exec "heat-admin:heat-admin" "/usr/local/bin/ovs_flows.sh" {% endif %} # Tail plugin configuration Instance "ovncontroller" Regex "Unreasonably long ([0-9]*)ms poll interval" DSType "GaugeLast" Type "count" Instance "poll" # Include other collectd configuration files Include "/etc/collectd.d"