Ansible Configuration For Service Monitoring

In order to monitor services, AppFormix requires configuration about where a service is running and credentials (if any) to connect to the service. A user may provide the configuration in the Dashboard Settings, but may also provide the configuration by defining Ansible variables. The Ansible playbook will configure AppFormix Platform with the information to monitor a service.

Configure MySQL Monitoring

MySQL monitoring is configured by the Ansible role appformix_mysql_config. This Ansible role is applied to the appformix_controller group of hosts. The following variables can be set as extra vars, group vars, etc. in Ansible.

There are two optional variables that can be specified as well:

Configure RabbitMQ Monitoring

RabbitMQ monitoring is configured by the Ansible role appformix_rabbit_config. This Ansible role is applied to the appformix_controller group of hosts. Ansible will perform the configuration if the following variables are set as extra vars, group vars, etc.

There is one optional variable that can be specified as well:

Configure Ceph Monitoring

Ceph service monitoring is configured by the Ansible role appformix_ceph. This Ansible role is applied to the appformix_controller group of hosts. Ansible will perform the configuration if the following variables are set as extra vars, group vars, etc.

In addition, at least one host must be specified in the inventory in the group [ceph_monitor]. Ansible will retrieve the ceph.conf and ceph.client.admin.keyring from one of the Ceph monitor nodes, and use the information to configure AppFormix to monitor cluster-wide metrics. Ansible will also deploy AppFormix Agent to Ceph monitor nodes, in order to monitor host-level metrics that affect health and performance of such hosts.

To enable host monitoring of the Ceph OSD nodes, specify the Ceph OSD nodes in the [ceph_osd] host group in the Ansible inventory. Ansible will deploy AppFormix Agent to these hosts and configure them with tag ceph-osd in AppFormix.

An example portion of the hosts file to specify Ceph nodes in Ansible inventory:

    [ceph_osd]
    ceph_osd01
    ceph_osd02

    [ceph_monitor]
    ceph_monitor01

Configure Contrail Monitoring

Contrail service monitoring is configured by the Ansible role appformix_contrail_config. This Ansible role is applied to the appformix_controller group of hosts. Ansible will perform the configuration if the following variables are set as extra vars, group vars, etc.

Configuration of Contrail uses the same OpenStack credentials as provided for AppFormix to access OpenStack services. The Ansible role reads the credentials from environment variables (e.g., OS_USERNAME, OS_PASSWORD).

The following optional variable may be specified:

Configure Cassandra Monitoring

Cassandra monitoring is configured by the Ansible role appformix_cassandra_config. This Ansible role is applied to the appformix_controller group of hosts. Ansible will perform the configuration if the following variables are set as extra vars, group vars, etc.

There is one optional variable that can be specified as well: