Giter VIP home page Giter VIP logo

circus's Introduction

Circus - API client for circonus

Circus is a python based client for working with the circonus API. It allows you to perform actions in bulk that may be difficult to perform using the web UI. In addition to this, it has a templating system to allow you to create checks and graphs based on json templates.

Quick start

  • Clone the circus repository.

  • Go to https://circonus.com/user/tokens

  • Click the + button to generate a new token and set permissions for the new token.

  • Store the token in ~/.circusrc:

     [general]
     default_account=MyAccount
     
     [tokens]
     MyAccount=e4e6fe5f-8548-485b-9789-4e112ea1689f
    
  • MyAccount can be anything you choose and is just a name to help you identify the account.

  • Run the client with a simple test comand:

     ./circus list_accounts
    
  • You will get an error saying that the token needs to be validated.

  • Refresh the API token webpage and click the Allow Access button that should now be showing.

  • Run the client again with the test command:

     ./circus list_accounts
    
  • It should now be working correctly and show you a list of accounts.

  • Run ./circus help for a list of commands and what they do.

System wide installation

  • sudo ./setup.py install.
  • run 'circus' to run the client.

Optional configuration

Multiple circonus accounts

  • Set up tokens as above in the quick start section, but every time you run circus, add the -a option to specify the account you want to use.

  • The name of the account is determined by what you put before the token in the config file. For example:

     [tokens]
     foo=e4e6fe5f-8548-485b-9789-4e112ea1689f
     bar=7a918b10-f481-4d84-b47d-500e57a4afa8
    
  • If you had the configuration above, you would use -a foo or -a bar to work on the different accounts.

  • The default_account option specifies which account to use if you don't specify -a.

User template directory

  • You can set an option in the general section of your ~/.circusrc file called template_dir. This directory can contain custom templates that you create for adding checks, graphs etc.
  • Templates are stored in subdirectories under this directory based on their type. So for example, if you had template_dir set to /home/foo/mytemplates then you would put graph templates inside /home/foo/mytemplates/graph.

circus's People

Contributors

mivok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zadunn

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.