40 Commits

Author SHA1 Message Date
Ian Wienand
358c6a7f7f Fix refresh for embedded csv
When we don't have files, refresh from the embedded CSV's

Change-Id: I6fef7426b2feda2cf8505c261eecdcc6bd6c9285
2021-12-07 11:12:17 +11:00
Ian Wienand
fe415871fd Add a sample.csv and update docs
Update sample html and screenshot

Change-Id: I718ab31e4bfbd3aa3c19e401c3e2d53a46621966
2021-12-07 11:12:17 +11:00
Ian Wienand
2af3737de5 Update generate_page.sh
Use the new library names, and make sure there's a newline before
closing the script tag, as some minimised libraries end with a comment
to the .map file and no trailing newline, meaning we comment-out the
tag.

Change-Id: Ic3575f8da42ab67bdcb59da211aeaf8bb0654b54
2021-12-07 11:12:17 +11:00
Ian Wienand
009f8942fd Fix focus panel chart selection for pcp-dstat
Headers slightly changed in pcp-dstat output, and the chart we need to
get is called "total usage:idl".  Look for this field, or fall back to
the old one to support both output formats.

Change-Id: Ib9aaf3c18da63cf5acd44ccf6eaff1c5fa68ac12
2021-12-07 11:12:17 +11:00
Ian Wienand
67a68ab1cf Replace remove .size() with .length
Change-Id: I3b74bf341fae3d36dd8c4a14e40fa3c76d353293
2021-12-07 11:12:17 +11:00
Ian Wienand
a928b67b4f Filter out blank lines
It seems like sometimes (perhaps with pcp dstat output that didn't
happen before) we can get a blank line at the end.  Make sure all
lines have a length before processing.

Change-Id: Id8cdaa2e4b7bcf2bcb27322eaa6f0ce8d21960ea
2021-12-07 11:12:17 +11:00
Ian Wienand
8f5a2eae5c Use list-group-item for graphs
This is the bootstrap 5 way to do a list group; add each graph as a
list-group-item.

Change-Id: Ia5410e7fff927797ce84687746a6c02bce9cb8fe
2021-12-07 11:12:17 +11:00
Ian Wienand
32a160e096 Fix walking elements of input list
gCSVs is the input array made by the static generation script.  Fix up
the array walk.

Change-Id: I36e7b1de66a567041c662f5b93672f52f058500a
2021-12-07 11:12:17 +11:00
Ian Wienand
c7ad52cc2e Trim margin of overview panel
This reduces the space around the "focus" slider

Change-Id: I2f7a69ed09180d43c9ece78acdcf4fa9af67d693
2021-12-07 11:12:17 +11:00
Ian Wienand
5855fdbe9b Conver to bootstrap 5
This converts the page to use bootstrap 5

Change-Id: I213e7178931c293962c3ea7840175baa5eaf3537
2021-12-07 11:12:17 +11:00
Ian Wienand
a511474934 Trim styles
Remove a bunch of styling that is no longer necessary

Change-Id: I2cd3916a99a16c841f5f3996a1efecfb507d8178
2021-12-07 11:12:17 +11:00
Ian Wienand
caddfbc1f9 Update dependencies
Update to latest bootstrap and jquery

Remove nv.d3.js which is shipped as a minimised file

Change-Id: Ie09a7b37aa4a660b57d0eb187ac76023336dc89f
2021-12-07 11:12:17 +11:00
Ian Wienand
db33049bd5 Add .gitreview and basic Zuul job
Change-Id: I9637e20984b64297e5c7306ffe031d618f0c260f
2021-12-07 11:11:53 +11:00
Damien Gasparina
c99e5d201e using shebang /bin/bash instead of /bin/sh 2018-05-24 15:23:24 +01:00
Gasparina Damien
7d59cac797
Merge pull request #4 from xplorld/master
use d3.range instead of homebrew range
2017-12-11 15:04:04 +00:00
Ruiyang Wang
5c0538b5e3 use d3.range instead of homebrew range, fix stack overflow in large input 2017-11-23 12:26:33 +08:00
Gasparina Damien
8a37519e61 Merge pull request #3 from halcyondude/master
Add <html></html> to index and generated output
2016-11-08 10:21:28 +00:00
Matt Young
aa3ec801dd Add <html></html> to index and generated output
We have been finding the generated html of our logs
to be very useful.  We generate them after one of our
CI jobs that deploy an OpenStack cloud using RDO.
RDO is a community of people using and deploying
OpenStack on CentOS, Fedora, and RHEL. [1]

Our artifact server keeps our logs and artifacts
compressed, and upon access decompresses, parses,
and renders them in a browser.  In the case of the
html files generated by generate_page.sh, since the
the open/close html tags are not present it does not
set the MIME type correctly and we don't render correctly.

An example of this is here: [2]

[1] https://www.rdoproject.org/
[2] https://thirdparty-logs.rdoproject.org/jenkins-tripleo-quickstart-periodic-newton-delorean-ha_192gb-17/undercloud/var/log/extra/dstat.html.gz
2016-11-08 00:08:47 -05:00
Damien Gasparina
efc7062e7d support different granularities, this to reduce memory consumption when required 2016-10-20 16:54:48 +01:00
Damien Gasparina
04838c4e4f removing ES6 dependancies (for browser compatibilities) 2016-06-03 17:36:41 +01:00
Damien Gasparina
66eea4c499 A few bug fixes there and there & code refactoring 2016-05-16 17:42:41 +02:00
Damien Gasparina
dfe6eecc15 Merge branch 'master' of github.com:Dabz/dstat_graph 2016-05-11 17:48:02 +02:00
Damien Gasparina
df9bfd7d80 Added standard/ugly boostrap menu with xAxis & interface configuration 2016-05-11 17:47:37 +02:00
Damien Gasparina
1dd3a1b006 Added standard/ugly boostrap menu with xAxis & interface configuration 2016-05-11 17:45:27 +02:00
Gasparina Damien
52e0ffb89a Create LICENSE.md 2016-03-04 09:47:12 +00:00
Damien Gasparina
f47ce0856c Added scripts to generate a single html file from CSVs;
./generate_page.sh csv1 csv2 > output.html
2016-02-23 22:18:58 +00:00
Damien Gasparina
73b8c6113c Draft for compact mode 2016-01-24 12:50:20 +00:00
Damien Gasparina
2f5e250f8d Added memory plugin support 2015-12-22 17:08:08 +01:00
Damien Gasparina
25393eb1be Bug fixed + specifitied for graphs 2015-12-22 16:45:30 +01:00
Damien Gasparina
962882d1c2 Fixed issues 2015-12-22 16:06:59 +01:00
Damien Gasparina
27c14c0d7f Added specific graph for CPUs 2015-12-22 15:56:52 +01:00
Damien Gasparina
8083378f59 increasing safety limit 2015-12-10 14:51:35 +00:00
Damien Gasparina
89c9c8567e Fix a few bugs and make CSV paring more robust 2015-11-20 12:21:40 +00:00
Damien Gasparina
16e32c57f9 Fixing yaxis byte problem 2015-09-07 17:51:52 +01:00
Damien Gasparina
4f26a8fbfb Merge branch 'master' of https://github.com/Dabz/dstat_graph 2015-08-26 11:37:12 -04:00
Damien Gasparina
8cf799dceb Added graph specifics behavior per metric 2015-08-26 11:36:46 -04:00
Damien Gasparina
7f7a2d8a0c Added sequence XAxis if time column is not provided 2015-08-25 14:39:41 -04:00
Gasparina Damien
4e628268f1 Create README.md 2015-08-25 12:56:12 -04:00
Damien Gasparina
39e1106702 Adding example image 2015-08-25 12:54:50 -04:00
Damien Gasparina
685316c2ea Initial commit 2015-08-25 12:49:53 -04:00