Skip to content

dlleigh/chirp

 
 

Repository files navigation

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.

About

make a sound

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 54.8%
  • Shell 38.6%
  • C 6.6%