a8ef2462d7
StatsD support works, working on dashboards As documented here http://docs.openstack.org/developer/ironic/deploy/metrics.html Ironic allows performance metrics to be dumped via StatsD, this installs StatsD on the undercloud via epel, sets up a service for it, enables it, and updates Ironic to use it. Change-Id: I793d4d3211ecf6113bd4863a0672ea0cb0de9dd3
30 lines
681 B
YAML
30 lines
681 B
YAML
---
|
|
- name: Install StatsD
|
|
yum: name=statsd state=present
|
|
become: True
|
|
|
|
- name: Create StatsD configuration folder
|
|
file:
|
|
path: /etc/statsd
|
|
state: directory
|
|
become: True
|
|
|
|
- name: Template configuration
|
|
template:
|
|
src: statsd_config.js.j2
|
|
dest: /etc/statsd/config.js
|
|
become: True
|
|
|
|
- name: Template StatsD service file
|
|
template:
|
|
src: statsd.service.j2
|
|
dest: /etc/systemd/system/statsd.service.j2
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
become: True
|
|
|
|
- name: bounce systemd and setup StatsD to run on startup
|
|
shell: /usr/bin/systemctl daemon-reload && /usr/bin/systemctl enable statsd && /usr/bin/systemctl restart statsd
|
|
become: True
|