Commit 67c23545 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

readme: getting started

parent 99a2b9a1
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ Simple Example: This will listen for json-events with type=unicorn_seen and rend
      :title => "Unicorn-Sightings per Hour",
      :type => :timeline,
      :gauges => :unicorns_seen_per_hour,  
      :autoupdate => 30
      :include_current => true,
      :autoupdate => 2
    }

  end
@@ -56,11 +57,11 @@ Start the app (requires ruby >= 1.9.2):

Log all incoming events:

  $ ruby my_stats_app.rb log
  $ ruby my_stats_app.rb log DUMP_FILE=/tmp/foo.json

This is the easiest way to submit an event:

  echo "{'_type': 'unicorn_seen'}\n" | nc localhost 1337
  echo "{\"_type\": \"unicorn_seen\"}" | nc localhost 1337


== Installation