Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 4. Installing the Performance Monitoring Suite
4.1. Installing the Collection Aggregator/Relay Copier lienLien copié sur presse-papiers!
Locate a bare metal system that meets the following minimum specifications:
- 4 GB of memory
- Single-socket Xeon class CPU
- 500 GB of disk space
- Install Red Hat Enterprise Linux 7.
Allow the system to access the Operational Tools packages:
Register the system and subscribe it:
subscription-manager register subscription-manager list --consumed
# subscription-manager register # subscription-manager list --consumed
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If an OpenStack subscription is not attached automatically, see the documentation for manually attaching subscriptions.
Disable initially enabled repositories and enable only the ones appropriate for the Operational Tools:
subscription-manager repos --disable=* subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-openstack-8-optools-rpms
# subscription-manager repos --disable=* # subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-openstack-8-optools-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe base OpenStack repository (rhel-7-server-openstack-8-rpms) must not be enabled on this node. This repository may contain newer versions of certain Operational Tools dependencies which may be incompatible with the Operational Tools packages.
Open the firewall on the system to allow connections to
Graphite
andGrafana
:firewall-cmd --zone=public --add-port=2003/tcp --permanent firewall-cmd --zone=public --add-port=3030/tcp --permanent firewall-cmd --reload
# firewall-cmd --zone=public --add-port=2003/tcp --permanent # firewall-cmd --zone=public --add-port=3030/tcp --permanent # firewall-cmd --reload
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Once that is done, install the
Graphite
andGrafana
software by running the following command:yum install python-carbon graphite-web grafana httpd
# yum install python-carbon graphite-web grafana httpd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the
Grafana
web interface to allow access. Edit/etc/httpd/conf.d/graphite-web.conf
and modify theRequire
line as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit
/etc/grafana/grafana.ini
, and changehttp_port
to3030
. Synchronize the database behind
Graphite
web. Run the following command; when prompted if you want to create a super user, chooseno
:sudo -u apache /usr/bin/graphite-manage syncdb --noinput
# sudo -u apache /usr/bin/graphite-manage syncdb --noinput
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start and enable all the
Graphite
andGrafana
services:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure
Grafana
to talk to yourGraphite
instance:-
Go to
http://PERFORMANCE_MONITORING_HOST:3030/
. You should be presented with theGrafana
login page. -
Enter the default credentials of
admin/admin
to log in to the system. -
After you are logged in, click on the
Grafana
logo in the top left corner of the screen, then choose Data Sources. At the top of the page, click Add new, and enter the following details:
Expand Name
graphite
Default
yes (select)
Type
Graphite
Url
http://localhost/
Access
proxy
Basic Auth
no (unselected)
- Finally, click the Add button at the bottom.
-
Go to
4.2. Installing the Performance Monitoring Collection Agent on All Nodes Copier lienLien copié sur presse-papiers!
To monitor the performance of all the systems in the OpenStack environment, run the following commands on all of them.
Enable the Operational Tools repository:
subscription-manager repos --enable=rhel-7-server-openstack-8-optools-rpms
# subscription-manager repos --enable=rhel-7-server-openstack-8-optools-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install
collectd
:yum install collectd
# yum install collectd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure
collectd
to send the data to the performance monitoring aggregator/relay. To do so, create/etc/collectd.d/10-write_graphite.conf
with the following contents, where PERFORMANCE_MONITORING_HOST is the host name or IP address of the host that was configured previously to be the performance monitoring aggregator/relay:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are using SELinux, allow
collectd
to tcp network connect:setsebool -P collectd_tcp_network_connect=1
# setsebool -P collectd_tcp_network_connect=1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start and enable
collectd
:systemctl start collectd systemctl enable collectd
# systemctl start collectd # systemctl enable collectd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After a while, you should see metrics in the Graphite
web user interface running at http://PERFORMANCE_MONITORING_HOST:3030/
.