Coder Social home page Coder Social logo

app-ylastic-costagent's Introduction

INSTALLATION INSTRUCTIONS

Note: the 'ylastic-costagent' program must be installed from CPAN.  

The app-ylastic-costagent git repository is not designed for direct
installation.  It contains an incomplete version of ylastic-costagent that is
compiled and released using the awesome Dist::Zilla tool (http://dzil.org).

(Think about it like this: dzil 'compiles' the repository into a tarball
for release to CPAN.  If you are an end-user, you want the code from CPAN,
not the repo.)

STEP 1 - Install App::Ylastic::CostAgent from CPAN

Install App::Ylastic::CostAgent using your regular CPAN client or distribution
package manager (if available). You may need the OpenSSL development libraries
installed if you don't already have SSL working.

If you aren't sure how to configure a CPAN client, see this excellent post on
using CPAN as a non-root user: http://goo.gl/j27IB 

For example, assuming Ubuntu Linux and a bash shell:

  $ sudo apt-get install libssl-dev
  $ curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
  $ eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
  $ echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.bashrc
  $ cpanm App::Ylastic::CostAgent

STEP 2 - Write a configuration file

The ylastic-costagent program requires a configuration file that specifies your
Ylastic and AWS account data. The file is 'INI' format. Here is a template:

   ylastic_id = 1234567890abdcef1234567890abcdef12345678
 
   [1234-5689-0123]
   user = [email protected]
   pass = trustno1
 
   [4321-9865-3210]
   user = [email protected]
   pass = trustno1

Each Amazon account should be listed as a separate section with the account ID
number in brackets. (You may omit dashes if you wish.)

STEP 3 - Schedule ylastic-costagent as a cron job

The ylastic-costagent program should be run regularly to keep your usage data
current on Ylastic. Here is an example cron job entry that updates usage data
every 12 hours:

   0 */12 * * * /path/to/ylastic-costagent -s user /path/to/config.ini

The -s user option will log to the user facility of syslogd.

If you use a local perl library, be sure to add an appropriate PERL5LIB to your
crontab file, e.g.:

   PERL5LIB=$HOME/perl5/lib/perl5/i686-linux:$HOME/perl5/lib/perl5

Look at the PERL5LIB set by local::lib for the right paths to use.

app-ylastic-costagent's People

Contributors

xdg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.