Coder Social home page Coder Social logo

heroku-metrics-spring's Introduction

Heroku Replay

This application funnels production log drains into Kafka, and then replays the requests represented in those logs against a staging application.

Usage

Locally with Docker, run:

$ docker-compose run shell
...
heroku@03248675cfea:~$ mvn clean package

In other terminal run:

$ docker-compose up web

Again in the shell session run cURL to test it:

heroku@03248675cfea:~$ cat << EOF > logs.txt
> 242 <158>1 2016-06-20T21:56:57.107495+00:00 host heroku router - at=info method=GET path="/" host=demodayex.herokuapp.com request_id=1850b395-c7aa-485c-aa04-7d0894b5f276 fwd="68.32.161.89" dyno=web.1 connect=0ms service=6ms status=200 bytes=1548
> EOF
heroku@03248675cfea:~$ curl -d @logs.txt web:8080/logs

Deploying

To deploy on Heroku run:

$ heroku create mylogdrain
$ heroku addons:create heroku-kafka
$ heroku plugins:install heroku-kafka
$ heroku kafka:wait
$ heroku config:set REPLAY_HOST="http:://example.com"
$ git push heroku master
$ heroku ps:scale replay=1
$ heroku drains:add https://user:[email protected]/logs -a myapp

heroku-metrics-spring's People

Contributors

jkutner 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.