Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 771 Bytes

README.md

File metadata and controls

36 lines (20 loc) · 771 Bytes

This project defines an HTTP server that lets you collect stats of a given site.

Dependencies

  • graphite
  • statsd

Running the server

For development in separate terminals run:

  • Run carbon and graphite-web—parts of graphite

       python /opt/graphite/bin/carbon-cache.py start
    

    !!!!!!You can ignore the message: 'WHISPER_FALLOCATE_CREATE is enabled but linking failed.'

      python /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite
    
  • Run statsd

      node /opt/statsd/stats.js /opt/statsd/config.js
    
  • Run application

      python ~/projects/analytics/main.py
    

For sending multiple HTTP requests run:

ab -n 10 -c 10 http://127.0.0.1:5000/page/49
  • To view graphs in a browser run localhost80:80