tsertkov / workout-logs-scripting

Playground: Log stream generation, processing and graphing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workout: Logs scripting

This repo contains scripts for playing around following topics:

  • Emitting log stream
  • Graphing log stream
  • Processing log stream

Prerequisites

Docker, make, and bash must be available.

Usage

Run make to recreate all artifacts.

NB! It will take a lot of time to build docker images on first run.

  • make all-browser: Open js-all-in-one/index.html in browser.
  • make all-perl: Run all perl parts sequentially (See part-*/perl/).
  • make all-bash: Run all bash parts sequentially (See part-*/bash/).
  • make all-python: Run all bash parts sequentially (See part-*/python/).
  • make stream-bash: Build all artifacts with streams using bash into stream-artifacts/.
  • make stream-perl: Build all artifacts with streams using perl into stream-artifacts/.
  • make stream-python: Build all artifacts with streams using python into stream-artifacts/.
$ time (make stream-perl)
>> Building all artifacts with streams (using perl).
>> Done. See files in stream-artifacts/ directory.
( make stream-perl; )  0.06s user 0.10s system 5% cpu 2.957 total

Example artifacts

RRDTool (Bash)

image

GD::Graph (Perl)

image

Matplotlib (Python)

image

D3 (JavaScript)

image

About

Playground: Log stream generation, processing and graphing.


Languages

Language:Jupyter Notebook 43.9%Language:HTML 17.2%Language:Shell 9.7%Language:Perl 9.7%Language:Python 8.6%Language:Makefile 8.1%Language:Dockerfile 2.7%