]> arthur.barton.de Git - netdata.git/blob - web/tv.html
Merge pull request #304 from ktsaou/master
[netdata.git] / web / tv.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4         <title>NetData TV Dashboard</title>
5
6         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7         <meta 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">
12
13         <script>
14         // this section has to appear before loading dashboard.js
15
16         // Select a theme.
17         // uncomment on of the two themes:
18
19         // var netdataTheme = 'default'; // this is white
20         var netdataTheme = 'slate'; // this is dark
21
22
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.
26
27         // var netdataServer = 'http://my.server:19999/';
28         </script>
29
30         <!--
31                 Load dashboard.js
32
33                 to host this HTML file on your web server,
34                 you have to load dashboard.js from the netdata server.
35
36                 So, pick one the two below
37                 If you pick the first, set the server name/IP.
38
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
41         -->
42         <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
43         <script type="text/javascript" src="dashboard.js"></script>
44
45         <script>
46         // Set options for TV operation
47         // This has to be done, after dashboard.js is loaded
48
49         // destroy charts not shown (lowers memory on the browser)
50         NETDATA.options.current.destroy_on_hide = true;
51         
52         // set this to false, to always show all dimensions
53         NETDATA.options.current.eliminate_zero_dimensions = true;
54         
55         // lower the pressure on this browser
56         NETDATA.options.current.concurrent_refreshes = false;
57
58         // if the tv browser is too slow (a pi?)
59         // set this to false
60         NETDATA.options.current.parallel_refresher = true;
61
62         // always update the charts, even if focus is lost
63         // NETDATA.options.current.stop_updates_when_focus_is_lost = false;
64
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
68
69         var RELOAD_EVERY = 5;
70         setTimeout(function(){
71                 location.reload();
72         }, RELOAD_EVERY * 60 * 1000);
73
74         </script>
75
76 </head>
77 <body>
78
79 <div style="width: 100%; text-align: center; display: inline-block;">
80
81         <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
82                 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
83                         <b>CPU On both servers</b>
84                 </div>
85                 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
86                         <br/>
87                         <div data-netdata="system.cpu"
88                                         data-host="http://netdata.firehol.org"
89                                         data-title="CPU usage of netdata.firehol.org"
90                                         data-chart-library="dygraph"
91                                         data-width="49%"
92                                         data-height="100%"
93                                         data-after="-300"
94                                         ></div>
95                         <div data-netdata="system.cpu"
96                                         data-title="CPU usage of your netdata server"
97                                         data-chart-library="dygraph"
98                                         data-width="49%"
99                                         data-height="100%"
100                                         data-after="-300"
101                                         ></div>
102                 </div>
103         </div>
104
105
106         <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
107                 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
108                         <b>Disk I/O on both servers</b>
109                 </div>
110                 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
111                         <div data-netdata="system.io"
112                                         data-host="http://netdata.firehol.org"
113                                         data-title="I/O on netdata.firehol.org"
114                                         data-chart-library="dygraph"
115                                         data-width="49%"
116                                         data-height="100%"
117                                         data-after="-300"
118                                         ></div>
119                         <div data-netdata="system.io"
120                                         data-title="I/O on your netdata server"
121                                         data-chart-library="dygraph"
122                                         data-width="49%"
123                                         data-height="100%"
124                                         data-after="-300"
125                                         ></div>
126                 </div>
127         </div>
128
129
130         <div style="width: 100%; height: 24vh; text-align: center; display: inline-block;">
131                 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
132                         <b>IPv4 traffic on both servers</b>
133                 </div>
134                 <div style="width: 100%; height: calc(100% - 15px); text-align: center; display: inline-block;">
135                         <div data-netdata="system.ipv4"
136                                         data-host="http://netdata.firehol.org"
137                                         data-title="IPv4 traffic on netdata.firehol.org"
138                                         data-chart-library="dygraph"
139                                         data-width="49%"
140                                         data-height="100%"
141                                         data-after="-300"
142                                         ></div>
143                         <div data-netdata="system.ipv4"
144                                         data-title="IPv4 traffic on your netdata server"
145                                         data-chart-library="dygraph"
146                                         data-width="49%"
147                                         data-height="100%"
148                                         data-after="-300"
149                                         ></div>
150                 </div>
151         </div>
152
153         <div style="width: 100%; height: 23vh; text-align: center; display: inline-block;">
154                 <div style="width: 100%; height: 15px; text-align: center; display: inline-block;">
155                         <b>Netdata statistics on both servers</b>
156                 </div>
157                 <div style="width: 100%; max-height: calc(100% - 15px); text-align: center; display: inline-block;">
158                         <div style="width: 49%; height:100%; align: center; display: inline-block;">
159                                 netdata.firehol.org
160                                 <br/>
161                                 <div data-netdata="netdata.requests"
162                                                 data-host="http://netdata.firehol.org"
163                                                 data-title="Chart Refreshes/s"
164                                                 data-chart-library="gauge"
165                                                 data-width="20%"
166                                                 data-height="100%"
167                                                 data-after="-300"
168                                                 data-points="300"
169                                                 ></div>
170                                 <div data-netdata="netdata.clients"
171                                                 data-host="http://netdata.firehol.org"
172                                                 data-title="Sockets"
173                                                 data-chart-library="gauge"
174                                                 data-width="20%"
175                                                 data-height="100%"
176                                                 data-after="-300"
177                                                 data-points="300"
178                                                 data-colors="#AA5500"
179                                                 ></div>
180                                 <div data-netdata="netdata.net"
181                                                 data-dimensions="in"
182                                                 data-host="http://netdata.firehol.org"
183                                                 data-title="Requests Traffic"
184                                                 data-chart-library="easypiechart"
185                                                 data-width="15%"
186                                                 data-height="100%"
187                                                 data-after="-300"
188                                                 data-points="300"
189                                                 ></div>
190                                 <div data-netdata="netdata.net"
191                                                 data-dimensions="out"
192                                                 data-host="http://netdata.firehol.org"
193                                                 data-title="Chart Data Traffic"
194                                                 data-chart-library="easypiechart"
195                                                 data-width="15%"
196                                                 data-height="100%"
197                                                 data-after="-300"
198                                                 data-points="300"
199                                                 ></div>
200                         </div>
201                         <div style="width: 49%; height:100%; align: center; display: inline-block;">
202                                 your netdata server
203                                 <br/>
204                                 <div data-netdata="netdata.requests"
205                                                 data-title="Chart Refreshes/s"
206                                                 data-chart-library="gauge"
207                                                 data-width="20%"
208                                                 data-height="100%"
209                                                 data-after="-300"
210                                                 data-points="300"
211                                                 ></div>
212                                 <div data-netdata="netdata.clients"
213                                                 data-title="Sockets"
214                                                 data-chart-library="gauge"
215                                                 data-width="20%"
216                                                 data-height="100%"
217                                                 data-after="-300"
218                                                 data-points="300"
219                                                 data-colors="#AA5500"
220                                                 ></div>
221                                 <div data-netdata="netdata.net"
222                                                 data-dimensions="in"
223                                                 data-title="Requests Traffic"
224                                                 data-chart-library="easypiechart"
225                                                 data-width="15%"
226                                                 data-height="100%"
227                                                 data-after="-300"
228                                                 data-points="300"
229                                                 ></div>
230                                 <div data-netdata="netdata.net"
231                                                 data-dimensions="out"
232                                                 data-title="Chart Data Traffic"
233                                                 data-chart-library="easypiechart"
234                                                 data-width="15%"
235                                                 data-height="100%"
236                                                 data-after="-300"
237                                                 data-points="300"
238                                                 ></div>
239                         </div>
240                 </div>
241         </div>
242 </div>
243 </body>
244 </html>