# 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
{% if ceph_storage_collectd_plugin %}
LoadPlugin ceph
{% endif %}
LoadPlugin cpu
{% if not collectd_prometheus %}
LoadPlugin conntrack
{% endif %}
{% if collectd_prometheus %}
LoadPlugin network
{% endif %}
LoadPlugin df
LoadPlugin disk
LoadPlugin exec
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin match_regex
LoadPlugin memory
LoadPlugin numa
LoadPlugin processes
{%if iostat_cephstorage_collectd_plugin %}
Globals true
{% endif %}
LoadPlugin swap
LoadPlugin tail
LoadPlugin turbostat
LoadPlugin unixsock
LoadPlugin uptime
# Open unix domain socket for collectdctl
SocketFile "/var/run/collectd-unixsock"
SocketGroup "collectd"
SocketPerms "0770"
DeleteSocket true
PreCacheChain "PreCache"
Plugin "^interface$"
PluginInstance "^tap*"
Target "stop"
Plugin "^interface$"
PluginInstance "^q.*"
Target "stop"
Target "return"
# 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 ceph_storage_collectd_plugin %}
LongRunAvgLatency false
ConvertSpecialMetricTypes true
{% if rhosp_version | float >= 17.0 %}
SocketPath "/var/run/ceph/{{ceph_cluster_fsid}}/ceph-osd.{{cephstorage_osd_socket.stdout}}.asok"
{% else %}
SocketPath "/var/run/ceph/ceph-osd.{{cephstorage_osd_socket.stdout}}.asok"
{% endif %}
{% endif %}
FSType anon_inodefs
FSType bdev
FSType cgroup
FSType cpuset
FSType debugfs
FSType devpts
FSType devtmpfs
FSType ecryptfs
FSType fuse
FSType fusectl
FSType hugetlbfs
FSType mqueue
FSType nfs
FSType nfs4
FSType nfsd
FSType overlay
FSType pipefs
FSType proc
FSType pstore
FSType ramfs
#FSType rootfs
FSType rpc_pipefs
FSType securityfs
FSType sockfs
FSType sysfs
FSType tmpfs
FSType vboxsf
MountPoint "/^/var/lib/docker/.*/"
IgnoreSelected true
ValuesPercentage true
ReportInodes true
{%if disk_cephstorage_collectd_plugin %}
Disk "/^[hsv]d[a-z]+[0-9]?|nvme.+$/"
Disk "/^nvm/"
IgnoreSelected false
{% endif %}
{%if iostat_cephstorage_collectd_plugin %}
ModulePath "/usr/local/bin/"
Import "collectd_iostat_python"
Path "/usr/bin/iostat"
Interval {{iostat_cephstorage_collectd_interval}}
IostatInterval 2
Count 2
Verbose false
NiceNames false
PluginName collectd_iostat_python
{% endif %}
# (akrzos) Including the version of OpenStack that the process was verified as running after
# OpenStack Installation with a comment at the end of each Process/ProcessMatch statement.
# A Minus before the version means the process was not found in that version. (Ex -9)
# Ceph (OpenStack Installed)
ProcessMatch "ceph-osd" "^/usr/bin/ceph-osd" # 10,11,12
# Collectd (Browbeat Installed)
ProcessMatch "collectd" "/usr/sbin/collectd"
# OVS (OpenStack Installed)
ProcessMatch "ovs-vswitchd" "ovs-vswitchd.+openvswitch" # 10,11,12
ProcessMatch "ovsdb-server" "ovsdb-server.+openvswitch" # 10,11,12
ReportBytes true
ValuesPercentage true
# Tail plugin configuration
{# Add ceph logs to tail #}
# Include other collectd configuration files
Include "/etc/collectd.d"