Skip to content

Commit

Permalink
Improvements to Undercloud collectd configuration
Browse files Browse the repository at this point in the history
+ Tail more log files (Keystone-HTTPD, Ironic-inspector,
  Glance, Mistral, and Swift)
+ Separate mistral-server processes (api, engine, executor)

Change-Id: I9a5bd141293b6eb79e3a563b4f830561d5e39f1c
  • Loading branch information
akrzos committed Nov 9, 2016
1 parent bf4c3ff commit 5b96a6b
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 10 deletions.
Expand Up @@ -124,7 +124,6 @@ PreCacheChain "PreCache"

# Everything Else (OpenStack Installed)
# (Processes displayed under "Everything Else" on Grafana Dashboards)
ProcessMatch "dnsmasq" "^dnsmasq.+" # 9,10
ProcessMatch "haproxy" "/usr/sbin/haproxy.+/etc/haproxy/haproxy.cfg" # -9,-10
Process "httpd" # 9,10
Process "memcached" # 9,10
Expand All @@ -145,7 +144,7 @@ PreCacheChain "PreCache"
ProcessMatch "ironic-api" "python.+ironic-api" # 9,10
ProcessMatch "ironic-conductor" "python.+ironic-conductor" # 9,10
ProcessMatch "ironic-inspector" "python.+ironic-inspector" # 9,10
ProcessMatch "dnsmasq-ironic" "/sbin/dnsmasq.+/etc/dnsmasq-ironic.conf" # 9,10
ProcessMatch "dnsmasq-ironic" "dnsmasq.+/etc/dnsmasq-ironic.conf" # 9,10
ProcessMatch "dnsmasq-ironicinspector" "/sbin/dnsmasq.+/etc/ironic-inspector/" # 9,10

# Keystone (OpenStack Installed)
Expand All @@ -154,7 +153,9 @@ PreCacheChain "PreCache"
ProcessMatch "keystone-main" "keystone-main.*-DFOREGROUND" # 9,10

# Mistral (Openstack Installed)
ProcessMatch "mistral-server" "python.+mistral-server" # -9,10
ProcessMatch "mistral-server-api" "python.+mistral-server.+api" # -9,10
ProcessMatch "mistral-server-engine" "python.+mistral-server.+engine" # -9,10
ProcessMatch "mistral-server-executor" "python.+mistral-server.+executor" # -9,10

# Neutron (OpenStack Installed)
ProcessMatch "neutron-dhcp-agent" "python.+neutron-dhcp-agent" # 9,10
Expand Down Expand Up @@ -213,6 +214,24 @@ PreCacheChain "PreCache"
Instance "total"
</Match>
</File>
<File "/var/log/httpd/keystone_wsgi_admin_error.log">
Instance "keystone-wsgi-admin"
<Match>
Regex ":error"
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>
<File "/var/log/httpd/keystone_wsgi_main_error.log">
Instance "keystone-wsgi-main"
<Match>
Regex ":error"
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>

<File "/var/log/nova/nova-api.log">
Instance "nova-api"
Expand Down Expand Up @@ -298,17 +317,18 @@ PreCacheChain "PreCache"
</Match>
</File>

<File "/var/log/heat/heat-api-cfn.log">
Instance "heat-api-cfn"
<File "/var/log/ironic-inspector/ironic-inspector.log">
Instance "ironic-inspector"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>
<File "/var/log/heat/heat-api-cloudwatch.log">
Instance "heat-api-cloudwatch"

<File "/var/log/heat/heat-api-cfn.log">
Instance "heat-api-cfn"
<Match>
Regex " ERROR "
DSType "CounterInc"
Expand All @@ -334,6 +354,77 @@ PreCacheChain "PreCache"
Instance "total"
</Match>
</File>

<File "/var/log/glance/api.log">
Instance "glance-api"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>
<File "/var/log/glance/registry.log">
Instance "glance-registry"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>

<File "/var/log/mistral/api.log">
Instance "mistral-api"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>
<File "/var/log/mistral/engine.log">
Instance "mistral-engine"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>
<File "/var/log/mistral/executor.log">
Instance "mistral-executor"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
</Match>
</File>

# Swift logs all into the same file
<File "/var/log/swift/swift.log">
Instance "swift"
<Match>
Regex "account-server: ERROR "
DSType "CounterInc"
Type "counter"
Instance "account-server"
</Match>
<Match>
Regex "container-server: ERROR "
DSType "CounterInc"
Type "counter"
Instance "container-server"
</Match>
<Match>
Regex "object-server: ERROR "
DSType "CounterInc"
Type "counter"
Instance "object-server"
</Match>
</File>

</Plugin>

# Include other collectd configuration files
Expand Down
9 changes: 6 additions & 3 deletions ansible/install/roles/grafana-dashboards/vars/main.yml
Expand Up @@ -61,7 +61,6 @@ per_process_panels:
OpenStack-Undercloud:
- name: "Everything Else"
processes:
- dnsmasq
- httpd
- memcached
- mysqld
Expand Down Expand Up @@ -122,7 +121,9 @@ per_process_panels:
# Openstack's Workflow service, +1 to optimize
- name: "Mistral"
processes:
- mistral-server
- mistral-server-api
- mistral-server-engine
- mistral-server-executor
- name: "Zaqar"
processes:
- zaqar-server
Expand Down Expand Up @@ -398,7 +399,9 @@ per_process_panels:
# Openstack's Workflow service, +1 to optimize
- name: "Mistral"
processes:
- mistral-server
- mistral-server-api
- mistral-server-engine
- mistral-server-executor
- name: "Zaqar"
processes:
- zaqar-server
Expand Down

0 comments on commit 5b96a6b

Please sign in to comment.