Skip to content

CloudStats/CloudStatsAgent

Repository files navigation

CloudStats Agent

The new agent for http://cloudstats.me

How to install

Install the stable version

Get your install code from http://login.cloudstats.me

Install the version from this repo

You can get the latest prerelease version from this repository and use it. But it will need a little more work to install it.

  1. You have to install a ruby version on your box. It has been tested on 2.1 and 2.2 on Linux and OS X. You can install it with your package manager or with rvm

  2. You clone this repository:

git clone https://github.com/CloudStats/CloudStatsAgent.git && cd CloudStatsAgent
  1. You install the gems with the command:
bundle install
  1. You grab the API key for your account from the top menu: Add New Monitor -> Add New Server -> Windows -> API Key

  2. You setup the agent with your API Key

INSTALL_PATH=`pwd` bundle exec ruby lib/cloudstats.rb --setup YOUR_API_KEY
  1. You can run the agent with
INSTALL_PATH=`pwd` bundle exec ruby lib/cloudstats.rb
  1. You can modify the existing script in init.d/cloudstats-agent to start the agent or you can add it as startup into /etc/rc.local:
INSTALL_PATH='the path where the agent is installed' bundle exec ruby lib/cloudstats.rb

RabbiqMQ configuration

plugin rabbitmq-auth-backend-http