Chapter 5. Configuring Red Hat OpenStack Platform director Operator for Service Telemetry Framework
To collect metrics, events, or both, and to send them to the Service Telemetry Framework (STF) storage domain, you must configure the Red Hat OpenStack Platform (RHOSP) overcloud to enable data collection and transport.
STF can support both single and multiple clouds. The default configuration in RHOSP and STF set up for a single cloud installation.
- For a single RHOSP overcloud deployment using director Operator with default configuration, see Section 5.1, “Deploying Red Hat OpenStack Platform overcloud for Service Telemetry Framework using director Operator”.
5.1. Deploying Red Hat OpenStack Platform overcloud for Service Telemetry Framework using director Operator Copy linkLink copied to clipboard!
When you deploy the Red Hat OpenStack Platform (RHOSP) overcloud deployment using director Operator, you must configure the data collectors and the data transport for Service Telemetry Framework (STF).
Prerequisites
- You are familiar with deploying and managing RHOSP with the RHOSP director Operator.
Procedure
Additional resources
- For more information about deploying an OpenStack cloud using director Operator, see https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/rhosp_director_operator_for_openshift_container_platform/index
- To collect data through AMQ Interconnect, see the amqp1 plug-in.
5.1.1. Retrieving the AMQ Interconnect route address Copy linkLink copied to clipboard!
When you configure the Red Hat OpenStack Platform (RHOSP) overcloud for Service Telemetry Framework (STF), you must provide the AMQ Interconnect route address in the STF connection file.
Procedure
- Log in to your Red Hat OpenShift Container Platform environment where STF is hosted.
Change to the
service-telemetry
project:oc project service-telemetry
$ oc project service-telemetry
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Retrieve the AMQ Interconnect route address:
oc get routes -ogo-template='{{ range .items }}{{printf "%s\n" .spec.host }}{{ end }}' | grep "\-5671"
$ oc get routes -ogo-template='{{ range .items }}{{printf "%s\n" .spec.host }}{{ end }}' | grep "\-5671" default-interconnect-5671-service-telemetry.apps.infra.watch
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.2. Creating the base configuration for director Operator for STF Copy linkLink copied to clipboard!
Edit the heat-env-config-deploy
ConfigMap to add the base Service Telemetry Framework (STF) configuration to the overcloud nodes.
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
heat-env-config-deploy
ConfigMap
CR for editing:oc edit heat-env-config-deploy
$ oc edit heat-env-config-deploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
enable-stf.yaml
configuration to theheat-env-config-deploy
ConfigMap, save your edits and close the file:enable-stf.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.3. Configuring the STF connection for director Operator for the overcloud Copy linkLink copied to clipboard!
Edit the heat-env-config-deploy
ConfigMap to create a connection from Red Hat OpenStack Platform (RHOSP) to Service Telemetry Framework.
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
heat-env-config-deploy
ConfigMap for editing:oc edit configmap heat-env-config-deploy
$ oc edit configmap heat-env-config-deploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add your
stf-connectors.yaml
configuration to theheat-env-config-deploy
ConfigMap, appropriate to your environment, save your edits and close the file:stf-connectors.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
The
resource_registry
configuration directly loads the collectd service because you do not include thecollectd-write-qdr.yaml
environment file for multiple cloud deployments. -
Replace the
host
sub-parameter ofMetricsQdrConnectors
with the value that you retrieved in Section 4.1.2, “Retrieving the AMQ Interconnect route address”. -
Replace the
<password_from_stf>
portion of thesaslPassword
sub-parameter ofMetricsQdrConnectors
with the value you retrieved in Section 4.1.1, “Retrieving the AMQ Interconnect password”. -
Set
topic
value ofCeilometerQdrMetricsConfig.topic
to define the topic for Ceilometer metrics. The value is a unique topic identifier for the cloud such ascloud1-metering
. -
Set
CollectdAmqpInstances
sub-parameter to define the topic for collectd metrics. The section name is a unique topic identifier for the cloud such ascloud1-telemetry
. -
Set
CollectdSensubilityResultsChannel
to define the topic for collectd-sensubility events. The value is a unique topic identifier for the cloud such assensubility/cloud1-telemetry
.
-
The
5.1.4. Deploying the overcloud for director Operator Copy linkLink copied to clipboard!
Deploy or update the overcloud with the required environment files so that data is collected and transmitted to Service Telemetry Framework (STF).
Procedure
Log in to the Red Hat OpenShift Container Platform environment where RHOSP director Operator is deployed and change to the project that hosts your RHOSP deployment:
oc project openstack
$ oc project openstack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
OpenStackConfigGenerator
custom resource for editing:oc edit OpenStackConfigGenerator
$ oc edit OpenStackConfigGenerator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
metrics/ceilometer-write-qdr.yaml
andmetrics/qdr-edge-only.yaml
environment files as values for theheatEnvs
parameter. Save your edits, and close theOpenStackConfigGenerator
custom resource:NoteIf you already deployed a Red Hat OpenStack Platform environment using director Operator, you must delete the existing
OpenStackConfigGenerator
and create a new object with the full configuration in order to re-generate theOpenStackConfigVersion
.OpenStackConfigGenerator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
If you already deployed a Red Hat OpenStack Platform environment using director Operator and generated a new
OpenStackConfigVersion
, edit theOpenStackDeploy
object of your deployment, and set the value ofspec.configVersion
to the newOpenStackConfigVersion
in order to update the overcloud deployment.