Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to the monitoring server

  2. Edit the Cassandra configuration file at:

    Code Block
    /etc/cassandra/conf/cassandra.yaml
    1. Remove Check the seeds value. In this example, remove x.x.x.x

      Code Block
      seeds: x.x.x.x

      Add , which should be the IP of the monitoring VM (or the master VM as the new seeds value.in the cluster)

      Code Block
      seeds: <IPx.ofx.Masterx.VM>x
  3. Edit the KairosDB properties file at:

    Code Block
    /opt/kairosdb/conf/kairosdb.properties
    1. Remove the this property

      Code Block
      kairosdb.datastore.cassandra.host_list
    2. Add this property and set the value as the IP address of the monitoring server, without the port. (warning) Note the cql_ in the name. For example.

      Code Block
      kairosdb.datastore.cassandra.cql_host_list=10.60.10.102
  4. Edit the watchtower properties configuration files at:

    Code Block
    /etc/abiquo/watchtower/delorean.conf 
    /etc/abiquo/watchtower/emmett.conf
    1. Set the URL of the mysql server connection (as on the API server) with the IP address of the watchtower server

    .
    1. Set the database credentials as for the Abiquo server

  5. Edit the watchtower properties files at:

    Code Block
    /etc/abiquo/watchtower/delorean.properties
    /etc/abiquo/watchtower/emmett.

    Restart the server

    Stop the following services:

  6. cassandra and check that it is really ded

  7. kairosdb

  8. abiquo-emmett

  9. abiquo-delorean

  10. properties
    1. Add the port of the RabbitMQ connection to the datanode services server address

      Code Block
      abiquo.rabbitmq.addresses = 10.60.10.102:5672
  11. Stop monitoring services

    Code Block
    systemctl stop abiquo-delorean.service abiquo-emmett.service kairosdb.service cassandra.service
  12. Check if Cassandra is really dead

    Code Block
    ps auwx | grep cassandra

    Get the process number for Cassandra (the first number in the output of the previous command), and kill it. In this example, Cassandra is process 12345.

    Code Block
    kill -9 12345
  13. Stop the firewalld (and allow connections as required)

    Code Block
    systemctl stop firewalld.service
  14. Start cassandra and wait 5 minutes before continuing

  15. Start kairosdb and wait 1 minute

  16. Start abiquo-emmett and abiquo-delorean

  17. Start firewalld

The monitoring cluster of one server should now be fully functioning.

...

  1. On the Abiquo Server and the Abiquo Remote Services servers (but not the V2V server), edit the abiquo.properties file and check or set the following properties:

    1. abiquo.monitoring.enabled = yes

    2. abiquo.watchtower.host = {$MONITORING_IP_ADDRESS}

    3. abiquo.watchtower.port = 36638

  2. Restart your Abiquo Tomcat serviceservices.

To validate monitoring:

  1. This step assumes you have followed the Abiquo quick tutorial to deploy a VM in Abiquo

  2. Create Log in to the Abiquo UI and create a new VM and edit it

  3. Go to Monitoring and select the Fetch metrics checkbox and the metrics to display

  4. Save the VM

  5. Have a cup of tea or coffee while you wait for the VM Wait for Abiquo to obtain metrics for the VM (around 5 minutes)

  6. On the VM icon, click the graph metrics button to display your VM metrics

...