4 <title>NetData TV Dashboard</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9 <meta name="viewport" content="width=device-width, initial-scale=1">
10 <meta name="apple-mobile-web-app-capable" content="yes">
11 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
14 // this section has to appear before loading dashboard.js
17 // uncomment on of the two themes:
19 // var netdataTheme = 'default'; // this is white
20 var netdataTheme = 'slate'; // this is dark
23 // Set the default netdata server.
24 // on charts without a 'data-host', this one will be used.
25 // the default is the server that dashboard.js is downloaded from.
27 // var netdataServer = 'http://my.server:19999/';
33 to host this HTML file on your web server,
34 you have to load dashboard.js from the netdata server.
36 So, pick one the two below
37 If you pick the first, set the server name/IP.
39 The second assumes you host this file on /usr/share/netdata/web
40 and that you have chown it to be owned by netdata:netdata
42 <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
43 <script type="text/javascript" src="dashboard.js"></script>
46 // Set options for TV operation
47 // This has to be done, after dashboard.js is loaded
49 // destroy charts not shown (lowers memory on the browser)
50 NETDATA.options.current.destroy_on_hide = true;
52 // set this to false, to always show all dimensions
53 NETDATA.options.current.eliminate_zero_dimensions = true;
55 // lower the pressure on this browser
56 NETDATA.options.current.concurrent_refreshes = false;
58 // if the tv browser is too slow (a pi?)
60 NETDATA.options.current.parallel_refresher = true;
62 // always update the charts, even if focus is lost
63 // NETDATA.options.current.stop_updates_when_focus_is_lost = false;
65 // Since you may render charts from many servers and any of them may
66 // become offline for some time, the charts will break.
67 // This will reload the page every RELOAD_EVERY minutes
70 setTimeout(function(){
72 }, RELOAD_EVERY * 60 * 1000);
79 <div style="width: 100%; text-align: center; display: inline-block;">
81 <b>PLEASE RESPECT OUR DEMO SITE RESOURCES - DON'T PUT THIS AS-IS ON TV - CLOSE IT WHEN YOU DON'T NEED IT !</b>
84 <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
85 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
86 <b>CPU On both servers</b>
88 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
90 <div data-netdata="system.cpu"
91 data-host="http://netdata.firehol.org"
92 data-title="CPU usage of netdata.firehol.org"
93 data-chart-library="dygraph"
98 <div data-netdata="system.cpu"
99 data-title="CPU usage of your netdata server"
100 data-chart-library="dygraph"
109 <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
110 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
111 <b>Disk I/O on both servers</b>
113 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
114 <div data-netdata="system.io"
115 data-host="http://netdata.firehol.org"
116 data-title="I/O on netdata.firehol.org"
117 data-chart-library="dygraph"
122 <div data-netdata="system.io"
123 data-title="I/O on your netdata server"
124 data-chart-library="dygraph"
133 <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
134 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
135 <b>IPv4 traffic on both servers</b>
137 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
138 <div data-netdata="system.ipv4"
139 data-host="http://netdata.firehol.org"
140 data-title="IPv4 traffic on netdata.firehol.org"
141 data-chart-library="dygraph"
146 <div data-netdata="system.ipv4"
147 data-title="IPv4 traffic on your netdata server"
148 data-chart-library="dygraph"
156 <div style="width: 100%; height: 23vh; text-align: center; display: inline-block;">
157 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
158 <b>Netdata statistics on both servers</b>
160 <div style="width: 100%; max-height: calc(100% - 15px); text-align: center; display: inline-block;">
161 <div style="width: 49%; height:100%; align: center; display: inline-block;">
164 <div data-netdata="netdata.requests"
165 data-host="http://netdata.firehol.org"
166 data-title="Chart Refreshes/s"
167 data-chart-library="gauge"
173 <div data-netdata="netdata.clients"
174 data-host="http://netdata.firehol.org"
176 data-chart-library="gauge"
181 data-colors="#AA5500"
183 <div data-netdata="netdata.net"
185 data-host="http://netdata.firehol.org"
186 data-title="Requests Traffic"
187 data-chart-library="easypiechart"
193 <div data-netdata="netdata.net"
194 data-dimensions="out"
195 data-host="http://netdata.firehol.org"
196 data-title="Chart Data Traffic"
197 data-chart-library="easypiechart"
204 <div style="width: 49%; height:100%; align: center; display: inline-block;">
207 <div data-netdata="netdata.requests"
208 data-title="Chart Refreshes/s"
209 data-chart-library="gauge"
215 <div data-netdata="netdata.clients"
217 data-chart-library="gauge"
222 data-colors="#AA5500"
224 <div data-netdata="netdata.net"
226 data-title="Requests Traffic"
227 data-chart-library="easypiechart"
233 <div data-netdata="netdata.net"
234 data-dimensions="out"
235 data-title="Chart Data Traffic"
236 data-chart-library="easypiechart"