Skip to main content

Elastic Beanstalk

The following explains how to apply the WhaTap agent when deploying with Elastic Beanstalk.

  1. Depending on the Linux installation environment, add the following Linux to the Elastic Beanstalk's installation script.

    Note

    Enter the whatap.server.host and license that is the Project access key to your taste.

    wget http://repo.whatap.io/debian/release.gpg -O -|sudo apt-key add -
    wget http://repo.whatap.io/debian/whatap-repo_1.0_all.deb
    sudo dpkg -i whatap-repo_1.0_all.deb
    sudo apt-get update
    sudo apt-get install whatap-infra
    echo "license={LICENSE_INFO}" |sudo tee /usr/whatap/infra/conf/whatap.conf
    echo "whatap.server.host={HOST_IP}" |sudo tee -a /usr/whatap/infra/conf/whatap.conf
    echo "createdtime=`date +%s%N`" |sudo tee -a /usr/whatap/infra/conf/whatap.conf
    sudo service whatap-infra restart
    sudo rpm --import http://repo.whatap.io/suse/release.gpg
    echo "[whatap]" | sudo tee /etc/zypp/repos.d/whatap.repo > /dev/null
    echo "name=whatap packages for enterprise linux" | sudo tee -a /etc/zypp/repos.d/whatap.repo > /dev/null
    echo "baseurl=http://repo.whatap.io/suse/12/x86_64" | sudo tee -a /etc/zypp/repos.d/whatap.repo > /dev/null
    echo "enabled=1" | sudo tee -a /etc/zypp/repos.d/whatap.repo > /dev/null
    echo "gpgcheck=1" | sudo tee -a /etc/zypp/repos.d/whatap.repo > /dev/null
    sudo zypper refresh
    sudo zypper install whatap-infra
    echo "license={LICENSE_INFO}" |sudo tee /usr/whatap/infra/conf/whatap.conf
    echo "whatap.server.host={HOST_IP}" |sudo tee -a /usr/whatap/infra/conf/whatap.conf
    echo "createdtime=`date +%s%N`" |sudo tee -a /usr/whatap/infra/conf/whatap.conf
    sudo /etc/init.d/whatap-infra restart
  2. Modify the following command.

    echo "createdtime=date +%s%N" |sudo tee -a /usr/whatap/infra/conf/whatap.conf

    By including the server monitoring into the Beanstalk after installation, a new list for server monitoring may be generated repeatedly in every release of applications.

    This is because the WhaTap agent's internal ID is newly issued each time the above command is executed. Modify as follows to prevent the new list from generating in a later release.

    echo "createdtime=12345678" |sudo tee -a /usr/whatap/infra/conf/whatap.conf