GithubHelp home page GithubHelp logo

teddymcw / collective_stats_logviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eleddy/collective_stats_logviewer

0.0 2.0 0.0 1.75 MB

Pyramid application to gather data from a log that has collective.stats enabled and display meaningful information from it (Noisebridge Advanced Python Class)

Python 10.20% JavaScript 89.80%

collective_stats_logviewer's Introduction

Initialize the database

Step zero: make sure your repo is up to date

Step one: (cd into collective_stats_logviewer) Type in your terminal:

./bin/flask-ctl debug initdb

Initialize the server

Type in your terminal:

./bin/flask-ctl debug fg

Problem

Parse through a log file from a plone instance that has collective.stats installed to pull out meaningful stats and publish to the web. Help them find long running requests, requests that are taking a lot of memory, and general performance related stats.

From the command line, send that log to a web service which will parse through it and then return a pretty url where a user can go analyze their stats. Some details:

  • The framework will be Flask. You will benefit from going through the other web framework tutorials if you are not familiar with concepts of templates, databases, etc.
  • It's not realistic to send whole log files through the web so start thinking about chunking techniques. This makes sense since in reality you would want this data being updated real time.
  • We have minimally covered relational databases but you might want to ramp up on the concepts ahead of time. We will be using sqlalchemy with a lot of ETL. If you guys are passionate we can be cool and try a nosql database but I don't think its best for long term job stuff.
  • I expect most of you to be nominally familiar with html and we will be digging into jquery and plotting libraries. We will be rotating and pairing with who has good skills where but going through a jQuery tutorial and a javascript tutorial would be great.
  • In haste with a client I already wrote a good chunk of the actual log parsing and that will be in this repo for reference.

.

collective_stats_logviewer's People

Contributors

abutton avatar eleddy avatar jsutterfield avatar plesf avatar sonjakt avatar teddymcw 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.