Code Monkey home page Code Monkey logo

chirp's Introduction

chirp

Chirp is meant to be set up with Travis CI to repeatedly build itself for purposes of real world monitoring. There is a server component called chirp-tracker that understands both github and travis webhook payloads and keeps a record of timestamps and commits from each such that a delta may be used as a simple metric for high level alerts.

setup

  1. Add this gem as a dependency in a Gemfile, e.g. gem 'chirp', github: 'travis-infrastructure/chirp'
  2. Add a .travis.yml with required bits
    • Ensure it is language: ruby or at least uses a language with bundler available
    • Ensure the script step includes bundle exec chirp scripts
    • Optionally, add an after_success step that includes:
      • bundle exec chirp pushback &>/dev/null
      • bundle exec chirp sendstats &>/dev/null
    • Optionally, add an after_failure step with bundle exec chirp dumplogs
    • Ensure there is a webhook set up to point at a chirp-tracker instance with on_success: always and on_failure: never
  3. travis enable
  4. Generate a github token with repo scope
  5. travis env set GITHUB_OAUTH_TOKEN <github-token>
  6. Add a webhook on github for chirp-tracker, e.g. https://chirp-tracker-production.herokuapp.com/github with content type of application/x-www-form-urlencoded and the secret token configured on the server side. Only the push event needs to be configured.

chirp's People

Contributors

meatballhat avatar dlleigh avatar

Watchers

James Cloos 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.