Skip to content

Commit

Permalink
Compress again by default all data inside HTMLs
Browse files Browse the repository at this point in the history
  • Loading branch information
fmontorsi committed Dec 4, 2021
1 parent 673aa28 commit 9dda920
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 205 deletions.
364 changes: 273 additions & 91 deletions examples/baremetal1.html

Large diffs are not rendered by default.

172 changes: 129 additions & 43 deletions examples/docker-collecting-baremetal-stats.html

Large diffs are not rendered by default.

222 changes: 162 additions & 60 deletions examples/docker-userapp-with-embedded-collector.html

Large diffs are not rendered by default.

Binary file modified examples/docker-userapp-with-embedded-collector.json.gz
Binary file not shown.
36 changes: 27 additions & 9 deletions examples/docker-userapp.html

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions tools/chart/cmonitor_chart.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ GRAPH_SOURCE_DATA_CGROUP = 2
GRAPH_TYPE_AREA_CHART = 1
GRAPH_TYPE_BUBBLE_CHART = 2

SAVE_DEFLATED_JS_DATATABLES = False
SAVE_DEFLATED_JS_DATATABLES = True
JS_INDENT_SIZE = 2

# see https://developers.google.com/chart/interactive/docs/reference#dateformat
Expand Down Expand Up @@ -174,7 +174,10 @@ class GoogleChartsTimeSeries(object):
)

# add DateFormatter to use custom formatting of the 1st column (like everywhere else we assume first column is the timestamp)
ret_string += "var date_formatter = new google.visualization.DateFormat({pattern: '%s'});\n" % (TOOLTIP_DATEFORMAT)
ret_string += (
"var date_formatter = new google.visualization.DateFormat({pattern: '%s'});\n"
% (TOOLTIP_DATEFORMAT)
)
ret_string += "date_formatter.format(data_%s, 0);\n\n" % (graphName)

return ret_string
Expand Down

0 comments on commit 9dda920

Please sign in to comment.