Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 2. Installing Metrics Store
Prerequisites
Computing resources:
- 4 CPU cores
- 30 GB RAM
- 500 GB SSD disk
For the Metrics Store Installation virtual machine:
- 4 CPU cores
- 8 GB RAM
NoteThe computing resource requirements are for an all-in-one installation, with a single Metrics Store virtual machine. The all-in-one installation can collect data from up to 50 hosts, each running 20 virtual machines.
- Operating system: Red Hat Enterprise Linux 7.6 or later
- Software: Red Hat Virtualization 4.2 or later
- Network configuration: see Network_configuration_for_metrics_store_virtual_machines
2.1. Creating the Metrics Store virtual machines Copier lienLien copié sur presse-papiers!
Creating the Metrics Store virtual machines involves the following steps:
-
Configuring the Metrics Store installation with
metrics-store-config.yml Creating the following Metrics Store virtual machines:
- The Metrics Store installer, a temporary virtual machine for deploying OpenShift and services on the Metrics Store virtual machines
- One or more Metrics Store virtual machines
- Verifying the Metrics Store virtual machines
Procedure
- Log in to the Manager machine using SSH.
Copy
metrics-store-config.yml.exampleto createmetrics-store-config.yml:cp /etc/ovirt-engine-metrics/metrics-store-config.yml.example /etc/ovirt-engine-metrics/config.yml.d/metrics-store-config.yml
# cp /etc/ovirt-engine-metrics/metrics-store-config.yml.example /etc/ovirt-engine-metrics/config.yml.d/metrics-store-config.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the parameters in
metrics-store-config.ymland save the file. The parameters are documented in the file. On the Manager machine, copy
/etc/ovirt-engine-metrics/secure_vars.yaml.exampleto/etc/ovirt-engine-metrics/secure_vars.yaml:cp /etc/ovirt-engine-metrics/secure_vars.yaml.example /etc/ovirt-engine-metrics/secure_vars.yaml
# cp /etc/ovirt-engine-metrics/secure_vars.yaml.example /etc/ovirt-engine-metrics/secure_vars.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Update the values of
/etc/ovirt-engine-metrics/secure_vars.yamlto match the details of your specific environment: Encrypt the secure_vars.yaml file:
ansible-vault encrypt /etc/ovirt-engine-metrics/secure_vars.yaml
# ansible-vault encrypt /etc/ovirt-engine-metrics/secure_vars.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Go to the
ovirt-engine-metricsdirectory:cd /usr/share/ovirt-engine-metrics
# cd /usr/share/ovirt-engine-metricsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
ovirt-metrics-store-installationplaybook to create the virtual machines:ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml --ask-vault-pass
# ANSIBLE_JINJA2_EXTENSIONS="jinja2.ext.do" ./configure_ovirt_machines_for_metrics.sh --playbook=ovirt-metrics-store-installation.yml --ask-vault-passCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Log in to the Administration Portal.
-
Click
to verify the successful creation of the metrics-store-installervirtual machine and the Metrics Store virtual machines.
2.2. Deploying OpenShift and Metrics Store services Copier lienLien copié sur presse-papiers!
Deploy OpenShift, Elasticsearch, Curator (for managing Elasticsearch indices and snapshots), and Kibana on the Metrics Store virtual machines.
Procedure
-
Log in to the
metrics-store-installervirtual machine. Run the
install_okdplaybook to deploy OpenShift and Metrics Store services to the Metrics Store virtual machines:ANSIBLE_CONFIG="/usr/share/ansible/openshift-ansible/ansible.cfg" \ ANSIBLE_ROLES_PATH="/usr/share/ansible/roles/:/usr/share/ansible/openshift-ansible/roles" \ ansible-playbook -i integ.ini install_okd.yaml -e @vars.yaml -e @secure_vars.yaml --ask-vault-pass
# ANSIBLE_CONFIG="/usr/share/ansible/openshift-ansible/ansible.cfg" \ ANSIBLE_ROLES_PATH="/usr/share/ansible/roles/:/usr/share/ansible/openshift-ansible/roles" \ ansible-playbook -i integ.ini install_okd.yaml -e @vars.yaml -e @secure_vars.yaml --ask-vault-passCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the deployment by logging in to each Metrics Store virtual machine:
Log in to the
openshift-loggingproject:oc project openshift-logging
# oc project openshift-loggingCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check that the Elasticsearch, Curator, and Kibana pods are running:
oc get pods
# oc get podsCopy to Clipboard Copied! Toggle word wrap Toggle overflow If Elasticsearch is not running, see Troubleshooting related to ElasticSearch in the OpenShift Container Platform 3.11 documentation.
Check the Kibana host name and record it so that you can access the Kibana console in Chapter 4, Verifying the Metrics Store installation:
oc get routes
# oc get routesCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Optional Cleanup
- Log in to the Administration Portal.
-
Click
and delete the metrics-store-installervirtual machine.
2.3. Network Configuration for Metrics Store virtual machines Copier lienLien copié sur presse-papiers!
Network configuration prerequisites:
-
Create a wildcard DNS record (
*.example.com) for the DNS zone of the Metrics Store virtual machines. - Add the Host names of the Metrics Store virtual machines to your DNS server.
To set a static MAC Address for the Virtual Machine (optional)
- Log in to the Administration Portal.
-
Click
, and select the virtual machine to configure. -
Select the
Network Interfacestab, select a NIC, and clickEdit. -
Select
Custom MAC Address, and enter the MAC address you want to assign to this NIC. -
Click
OKto save the configuration. - Reboot the virtual machine for the change to take effect.