server-loads-diagram-pmb
v0.1.6
Published
Render my server load logfiles as color gradient bar charts.
Downloads
4
Maintainers
Readme
server-loads-diagram-pmb
Render my server load logfiles as color gradient bar charts.
Currently, only the arrangement and captions are rendered using JavaScript. The color bars themselves are rendered with bash and ImageMagick. If you'd like to replace that with canvas rendering, PR welcome.
Usage
$ cd doc/example-01/
$ ./generate-logfiles.sh
create ex01-day-5.txt: done.
symlink 2010-08-31.txt: done.
$ ./generate-diagrams.sh
render month 2010-07 (shell command: **snip**) …
probably result file(s): 2010-07-99.diag.html
render month 2010-08 (shell command: **snip**) …
probably result file(s): 2010-08-99.diag.html
$ firefox ./2010-07-99.diag.html
- ScreenGrab! -> Copy -> Complete Page/Frame.
- Paste into your favorite image editor.
- Crop at the huge border area.
- Your diagram should now look like this image.
Hints
- You can remix date ranges from any number of months by remixing their data lines in the generated HTML files. (You may want to rename them.)
- You can set the
LOADBARS_JS_PATH
environment variable to set the path toloadbars.js
in the generated HTML. The JS will then fix the CSS. If you set the special pseudo-path//inline
, both files' content will be inserted into the HTML output.
License
ISC