Enabling and disabling monitoring services
The IBM® Cloud Infrastructure Center monitoring services (also known as telemetry services) includes the ceilometer service and gnocchi service. Those services are disabled by default. This section instructs how to config and manage the monitoring services.
The Ceilometer service collects, normalizes and transforms data produced by the IBM Cloud Infrastructure Center services.
The Gnocchi service provides a time-series resource indexing, metric storage service that capture the IBM Cloud Infrastructure Center resources and the metrics associated with them.
Note: If you want to use the monitoring services, you must enable and start the monitoring services.
Enable monitoring services
To enable the monitoring services, use the following commands:
Note: To get events data, add the following config into the notification section of the ceilometer conf file /etc/ceilometer/ceilometer.conf:
pipelines = event
Note: Start the gnocchi service before the ceilometer service to avoid getting incomplete meter data.
icic-config metering manage-service --enable gnocchi
icic-config metering manage-service --enable ceilometer
Note:
You need to run the corresponding management command from the management node, such as enable, disable, start, restart etc.
After enabling the services, the services restart automatically after the reboot.
If you add pipelines = event after the enablement of the ceilometer services, you need to use the command icic-services ceilometer restart to make changes take effect. Events generated before adding pipelines = event to the ceilometer.conf are missed.
Once, the service is enabled, you are able to check its status by using the icic-services command, for example:
[root@mgmtnode ~]# icic-services ceilometer status
● openstack-ceilometer-notification.service - OpenStack ceilometer notification agent
Active: inactive (dead)
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: inactive (dead)
Start monitoring service
After enabling the monitoring services, use the following command to start the services, it can start the services on both management node and compute nodes.
icic-services start
Note: This command only starts the services which are not running, it does not affect the running services.
After starting the service, use the icic-services status
command to check the services status, to be able to see five monitoring services (openstack-gnocchi-api.service, openstack-gnocchi-metricd.service, openstack-ceilometer-notification.service and openstack-ceilometer-polling.service) running on the management node, and one openstack-ceilometer-polling.service running on seach compute node, for example:
[root@mgmtnode ~]# icic-services status
● clerk-api.service - clerk API Server
Active: active (running) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● ivp-validation-api.service - IVP API Server
Active: active (running) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● icic-bumblebee.service - IBM Cloud Infrastructure Center Bumblebee
Active: active (running) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● openstack-gnocchi-api.service - OpenStack Gnocchi API Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-gnocchi-metricd.service - OpenStack Gnocchi metricd Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-cinder-ibm-health.service - IBM Cloud Infrastructure Center cinder monitor service
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-nova-ibm-health.service - IBM Cloud Infrastructure Center nova monitor service
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-neutron-ibm-health.service - IBM Cloud Infrastructure Center neutron monitor service
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-ceilometer-notification.service - OpenStack ceilometer notification agent
Active: active (running) since Mon 2021-02-22 10:04:12 GMT; 1min 55s ago
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: active (running) since Mon 2021-02-22 10:04:12 GMT; 1min 55s ago
● openstack-nova-api.service - OpenStack Nova API Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-nova-conductor.service - OpenStack Nova Conductor Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-nova-scheduler.service - OpenStack Nova Scheduler Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● neutron-server.service - OpenStack Neutron Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-cinder-api.service - OpenStack Cinder API Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-cinder-scheduler.service - OpenStack Cinder Scheduler Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● icic-cinder-conductor.service - IBM Cloud Infrastructure Center Cinder Conductor Server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● rabbitmq-server.service - RabbitMQ broker
Active: active (running) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● httpd.service - The Apache HTTP Server
Active: active (running) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
● memcached.service - memcached daemon
Active: active (running) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
● mariadb.service - MariaDB 10.3 database server
Active: active (running) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
Running on remote nodes.
Connected (version 2.0, client OpenSSH_8.0)
Connected (version 2.0, client OpenSSH_8.0)
Authentication (password) successful!
Authentication (password) successful!
Node BOEIAAS4
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: active (running) since Mon 2021-02-22 10:04:36 GMT; 1min 35s ago
● sdkserver.service - zVM SDK API server
Active: active (running) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● openstack-nova-compute.service - OpenStack Nova Compute Server
Active: active (running) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● neutron-zvm-agent.service - OpenStack Neutron zVM Plugin
Active: active (running) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● httpd.service - The Apache HTTP Server
Active: active (running) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
Node BOEIAAS3
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: active (running) since Mon 2021-02-22 10:04:38 GMT; 1min 33s ago
● sdkserver.service - zVM SDK API server
Active: active (running) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● openstack-nova-compute.service - OpenStack Nova Compute Server
Active: active (running) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● neutron-zvm-agent.service - OpenStack Neutron zVM Plugin
Active: active (running) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● httpd.service - The Apache HTTP Server
Active: active (running) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
To start the monitoring services separately, run the following command to start the specific service from the management node or each compute node.
/opt/ibm/icic/bin/icic-services <service> start
where <service>
is the ceilometer
or gnocchi
.
Note: You need to log onto the compute node, if you want to start the service on the computer node.
Note: If you want to close the monitoring services, you must stop and disable the monitoring services.
Stop monitoring services
To stop the services, use the following commands, it can stop the services on both management node and compute nodes.
icic-services stop
After stopping the service, use the icic-services status
command to check the services status, to be able to see five monitoring services (openstack-gnocchi-api.service, openstack-gnocchi-metricd.service, openstack-ceilometer-notification.service and openstack-ceilometer-polling.service) dead on the management node, and one openstack-ceilometer-polling.service dead on seach compute node, for example:
[root@mgmtnode ~]# icic-services status
● clerk-api.service - clerk API Server
Active: inactive (dead) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● ivp-validation-api.service - IVP API Server
Active: inactive (dead) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● icic-bumblebee.service - IBM Cloud Infrastructure Center Bumblebee
Active: inactive (dead) since Mon 2021-02-22 10:03:36 GMT; 2min 32s ago
● openstack-gnocchi-api.service - OpenStack Gnocchi API Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-gnocchi-metricd.service - OpenStack Gnocchi metricd Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-cinder-ibm-health.service - IBM Cloud Infrastructure Center cinder monitor service
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-nova-ibm-health.service - IBM Cloud Infrastructure Center nova monitor service
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● icic-neutron-ibm-health.service - IBM Cloud Infrastructure Center neutron monitor service
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-ceilometer-notification.service - OpenStack ceilometer notification agent
Active: inactive (dead) since Mon 2021-02-22 10:04:12 GMT; 1min 55s ago
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: inactive (dead) since Mon 2021-02-22 10:04:12 GMT; 1min 55s ago
● openstack-nova-api.service - OpenStack Nova API Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-nova-conductor.service - OpenStack Nova Conductor Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-nova-scheduler.service - OpenStack Nova Scheduler Server
Active: inactive (dead)) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● neutron-server.service - OpenStack Neutron Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 32s ago
● openstack-cinder-api.service - OpenStack Cinder API Server
Active: inactive (dead)) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-cinder-scheduler.service - OpenStack Cinder Scheduler Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● icic-cinder-conductor.service - IBM Cloud Infrastructure Center Cinder Conductor Server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● rabbitmq-server.service - RabbitMQ broker
Active: inactive (dead) since Mon 2021-02-22 10:03:35 GMT; 2min 33s ago
● httpd.service - The Apache HTTP Server
Active: inactive (dead) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
● memcached.service - memcached daemon
Active: inactive (dead) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
● mariadb.service - MariaDB 10.3 database server
Active: inactive (dead) since Mon 2021-02-22 10:03:32 GMT; 2min 36s ago
Running on remote nodes.
Connected (version 2.0, client OpenSSH_8.0)
Connected (version 2.0, client OpenSSH_8.0)
Authentication (password) successful!
Authentication (password) successful!
Node BOEIAAS4
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: inactive (dead) since Mon 2021-02-22 10:04:36 GMT; 1min 35s ago
● sdkserver.service - zVM SDK API server
Active: inactive (dead) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● openstack-nova-compute.service - OpenStack Nova Compute Server
Active: inactive (dead) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● neutron-zvm-agent.service - OpenStack Neutron zVM Plugin
Active: inactive (dead) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
● httpd.service - The Apache HTTP Server
Active: inactive (dead) since Mon 2021-02-22 10:04:15 GMT; 1min 55s ago
Node BOEIAAS3
● openstack-ceilometer-polling.service - OpenStack ceilometer polling agent
Active: inactive (dead) since Mon 2021-02-22 10:04:38 GMT; 1min 33s ago
● sdkserver.service - zVM SDK API server
Active: inactive (dead) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● openstack-nova-compute.service - OpenStack Nova Compute Server
Active: inactive (dead) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● neutron-zvm-agent.service - OpenStack Neutron zVM Plugin
Active: inactive (dead) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
● httpd.service - The Apache HTTP Server
Active: inactive (dead)) since Mon 2021-02-22 10:04:16 GMT; 1min 55s ago
To stop the monitoring services separately, run the following command to stop the specific service from the management node or each compute node.
/opt/ibm/icic/bin/icic-services <service> stop
where <service>
is the ceilometer
or gnocchi
.
Note: You need to log onto the compute node, if you want to stop the service on the computer node.
Disable monitoring services
To disable the monitoring services, use the following commands:
icic-config metering manage-service --disable ceilometer icic-config metering manage-service --disable gnocchi
Note: After disabling the services, the services won't restart automatically after the reboot, you are not able to check its status by using the icic-services
command.