Adding mysql plugin to openstack collectd configuration.

+ Add mysql plugin to undercloud.

Change-Id: Iecb4fed5ff95f0e11d62724fb3eb2483ae5325c7
This commit is contained in:
Alex Krzos 2016-03-14 19:48:50 -04:00
parent e7f2e5c2cb
commit 9ce7f65066
3 changed files with 79 additions and 0 deletions

View File

@ -19,6 +19,7 @@
with_items: with_items:
- collectd - collectd
- collectd-turbostat - collectd-turbostat
- collectd-mysql
- name: Configure collectd.conf - name: Configure collectd.conf
template: template:

View File

@ -22,6 +22,7 @@ LoadPlugin irq
LoadPlugin load LoadPlugin load
LoadPlugin match_regex LoadPlugin match_regex
LoadPlugin memory LoadPlugin memory
LoadPlugin mysql
LoadPlugin numa LoadPlugin numa
LoadPlugin processes LoadPlugin processes
LoadPlugin swap LoadPlugin swap
@ -75,6 +76,39 @@ PreCacheChain "PreCache"
# Exec nobody "/usr/local/bin/collectd-redis.sh" # Exec nobody "/usr/local/bin/collectd-redis.sh"
#</Plugin> #</Plugin>
<Plugin mysql>
<Database "cinder">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "glance">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "heat">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "keystone">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "nova">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "ovs_neutron">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
</Plugin>
<Plugin processes> <Plugin processes>
# Ceilometer # Ceilometer
ProcessMatch "ceilometer-agent-central" "python.+ceilometer-agent-central" ProcessMatch "ceilometer-agent-central" "python.+ceilometer-agent-central"

View File

@ -22,6 +22,7 @@ LoadPlugin irq
LoadPlugin load LoadPlugin load
LoadPlugin match_regex LoadPlugin match_regex
LoadPlugin memory LoadPlugin memory
LoadPlugin mysql
LoadPlugin numa LoadPlugin numa
LoadPlugin processes LoadPlugin processes
LoadPlugin swap LoadPlugin swap
@ -71,6 +72,49 @@ PreCacheChain "PreCache"
IgnoreSelected false IgnoreSelected false
</Plugin> </Plugin>
<Plugin mysql>
<Database "ceilometer">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "glance">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "heat">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "ironic">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "keystone">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "neutron">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "nova">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
<Database "tuskar">
Host "localhost"
Socket "/var/lib/mysql/mysql.sock"
InnodbStats true
</Database>
</Plugin>
<Plugin processes> <Plugin processes>
# Ceilometer # Ceilometer
ProcessMatch "ceilometer-agent-central" "python.+ceilometer-agent-central" ProcessMatch "ceilometer-agent-central" "python.+ceilometer-agent-central"