4 <title>NetData Multi-Server 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 // --- OPTIONS FOR THE DASHBOARD --
16 // this section has to appear before loading dashboard.js
19 // uncomment on of the two themes:
21 // var netdataTheme = 'default'; // this is white
22 var netdataTheme = 'slate'; // this is dark
25 // Set the default netdata server.
26 // on charts without a 'data-host', this one will be used.
27 // the default is the server that dashboard.js is downloaded from.
29 // var netdataServer = 'http://my.server:19999/';
33 --- LOAD dashboard.js ---
35 to host this HTML file on your web server,
36 you have to load dashboard.js from the netdata server.
38 So, pick one the two below
39 If you pick the first, set the server name/IP.
41 The second assumes you host this file on /usr/share/netdata/web
42 and that you have chown it to be owned by netdata:netdata
44 <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
45 <script type="text/javascript" src="dashboard.js"></script>
48 // --- OPTIONS FOR THE CHARTS --
50 // destroy charts not shown (lowers memory on the browsers)
51 // set this to 'yes' to destroy, 'false' to hide the charts
52 NETDATA.options.current.destroy_on_hide = false;
54 // set this to false, to always show all dimensions
55 NETDATA.options.current.eliminate_zero_dimensions = true;
57 // set this to false, to lower the pressure on the browser
58 NETDATA.options.current.concurrent_refreshes = true;
60 // if you need to support slow mobile phones, set this to false
61 NETDATA.options.current.parallel_refresher = true;
63 // set this to false, to always update the charts, even if focus is lost
64 NETDATA.options.current.stop_updates_when_focus_is_lost = true;
75 display: inline-block;
82 .mysparkline-overchart-label {
93 .mysparkline-overchart-value {
102 text-shadow: #333 0px 0px 2px;
107 display: inline-block;
115 display: inline-block;
132 <body style="text-align: center;">
134 <div class="container">
136 <div style="text-align: center; font-size: 13vw; height: 14vw;">
139 <div style="text-align: center; font-size: 2vw; height: 2.5vw;">
140 real-time performance monitoring
142 <div style="width:80%; text-align: right; font-size: 2.7vw;">
143 done... <strong>real-time</strong>!
145 <div style="padding-top: 3vw; padding-bottom: 1vw; text-align: center; font-size: 2vw;">
146 this dashboard gets its charts, from <b>3 netdata</b> servers
149 <div style="width: 100%; text-align: center; padding-top: 2vw;">
150 <div style="width: 100%; text-align: center;">
152 <div class="mygauge-combo">
153 <div class="mygauge">
154 <div data-netdata="netdata.requests"
155 data-host="//netdata1.firehol.org"
156 data-title="EU - London"
157 data-chart-library="gauge"
161 data-colors="#558855"
164 <div class="mygauge-button">
166 <button type="button" class="btn btn-default" data-toggle="button" aria-pressed="false" autocomplete="off" onclick="window.location='//netdata1.firehol.org'" style="font-size: 1.5vw;">Enter London!</button>
167 <div style="font-size: 0.8vw;">
168 Donated by DigitalOcean.com
172 <div class="mygauge-combo">
173 <div class="mygauge">
174 <div data-netdata="netdata.requests"
175 data-host="//netdata2.firehol.org"
176 data-title="US - Atlanta"
177 data-chart-library="gauge"
181 data-colors="#AA5555"
184 <div class="mygauge-button">
186 <button type="button" class="btn btn-default" data-toggle="button" aria-pressed="false" autocomplete="off" onclick="window.location='//netdata2.firehol.org'" style="font-size: 1.5vw;">Enter Atlanta!</button>
187 <div style="font-size: 0.8vw;">
192 <div class="mygauge-combo">
193 <div class="mygauge">
194 <div data-netdata="netdata.requests"
195 data-host="//netdata3.firehol.org"
196 data-title="EU - Greece"
197 data-chart-library="gauge"
201 data-colors="#5555AA"
204 <div class="mygauge-button">
206 <button type="button" class="btn btn-default" data-toggle="button" aria-pressed="false" autocomplete="off" onclick="window.location='//netdata3.firehol.org'" style="font-size: 1.5vw;">Come to Greece!</button>
207 <div style="font-size: 0.8vw;">
215 <div style="padding-top: 4vw; width: 100%; text-align: center; font-size: 2vw;">
216 the servers are not aware of this unified dashboard,
218 each server is not aware of the other 2 servers,
220 but on this dashboard they <b>behave like one</b>!
222 <div style="padding-top: 1vw; width: 100%; text-align: center; font-size: 1.5vw;">
223 <i class="fa fa-comment" aria-hidden="true"></i>
224 hover on a chart below, or drag it to show the past - <b>the others will follow</b>!
226 (double click on a chart to reset them all)
229 <div style="padding-top: 4vw; width: 100%; text-align: center; font-size: 1.5vw;">
230 <div style="padding-top: 1vw; padding-bottom: 1vw;">
231 Our <code>nginx</code> web servers recent requests/s:
234 <div class="mysparkline">
235 <div class="mysparkline-overchart-label">
236 <b>EU - London</b> web requests/s
238 <div class="mysparkline-overchart-value" id="nginx.requests.netdata" >
240 <div data-netdata="nginx.requests"
241 data-dimensions="requests"
242 data-host="//netdata1.firehol.org"
243 data-chart-library="dygraph"
244 data-dygraph-theme="sparkline"
245 data-dygraph-type="area"
249 data-colors="#558855"
250 data-show-value-of-requests-at="nginx.requests.netdata"
254 <div class="mysparkline">
255 <div class="mysparkline-overchart-label">
256 <b>US - Atlanta</b> web requests/s
258 <div class="mysparkline-overchart-value" id="nginx.requests.netdata2" >
260 <div data-netdata="nginx.requests"
261 data-dimensions="requests"
262 data-host="//netdata2.firehol.org"
263 data-chart-library="dygraph"
264 data-dygraph-theme="sparkline"
265 data-dygraph-type="area"
269 data-colors="#AA5555"
270 data-show-value-of-requests-at="nginx.requests.netdata2"
274 <div class="mysparkline">
275 <div class="mysparkline-overchart-label">
276 <b>EU - Greece</b> web requests/s
278 <div class="mysparkline-overchart-value" id="nginx.requests.netdata3" >
280 <div data-netdata="nginx.requests"
281 data-dimensions="requests"
282 data-host="//netdata3.firehol.org"
283 data-chart-library="dygraph"
284 data-dygraph-theme="sparkline"
285 data-dygraph-type="area"
289 data-colors="#5555AA"
290 data-show-value-of-requests-at="nginx.requests.netdata3"
295 <div style="width: 100%; text-align: right; font-size: 1vw;">
296 <i class="fa fa-comment" aria-hidden="true"></i> these charts are draggable and touchable, double click them to reset them
300 <div style="padding-top: 4vw; font-size: 1.5vw;">
301 Our bandwidth consumption per service
303 (Linux QoS configured by our <a href="https://github.com/firehol/netdata/wiki/You-should-install-QoS-on-all-your-servers">FireQOS</a>):
307 <ul class="nav nav-tabs" role="tablist" style="padding-top: 1vw;">
308 <li role="presentation" class="active"><a href="#outbout" aria-controls="outbout" role="tab" data-toggle="tab">Outbound</a></li>
309 <li role="presentation"><a href="#inbound" aria-controls="inbound" role="tab" data-toggle="tab">Inbound</a></li>
313 <div class="tab-content">
314 <div role="tabpanel" class="tab-pane active" id="outbout">
315 <div class="myfullchart">
316 <div data-netdata="tc.world_out"
317 data-host="//netdata1.firehol.org"
318 data-chart-library="dygraph"
319 data-title="EU - London, traffic we send per service"
326 <div class="myfullchart">
327 <div data-netdata="tc.world_out"
328 data-host="//netdata2.firehol.org"
329 data-chart-library="dygraph"
330 data-title="US - Atlanta, traffic we send per service"
338 <div class="myfullchart">
339 <div data-netdata="tc.world_out"
340 data-host="//netdata3.firehol.org"
341 data-chart-library="dygraph"
342 data-title="EU - Greece, traffic we send per service"
349 <div role="tabpanel" class="tab-pane" id="inbound">
350 <div class="myfullchart">
351 <div data-netdata="tc.world_in"
352 data-host="//netdata1.firehol.org"
353 data-chart-library="dygraph"
354 data-title="EU - London, traffic we receive per service"
362 <div class="myfullchart">
363 <div data-netdata="tc.world_in"
364 data-host="//netdata2.firehol.org"
365 data-chart-library="dygraph"
366 data-title="US - Atlanta, traffic we receive per service"
374 <div class="myfullchart">
375 <div data-netdata="tc.world_in"
376 data-host="//netdata3.firehol.org"
377 data-chart-library="dygraph"
378 data-title="EU - Greece, traffic we receive per service"
386 <div style="width: 100%; text-align: right; font-size: 1vw;">
387 <i class="fa fa-comment" aria-hidden="true"></i> <i>these legends are interactive and the charts are resizable here ^^^</i>
390 <div style="padding-top: 4vw; width: 100%; text-align: center; font-size: 1.5vw;">
391 <div style="padding-top: 1vw; padding-bottom: 1vw;">
394 (iptables SYNPROXY configured by our <a href="https://github.com/firehol/netdata/wiki/Monitoring-SYNPROXY">FireHOL</a>):
397 <div class="mysparkline">
398 <div class="mysparkline-overchart-label">
399 <b>EU - London</b>, TCP SYN packets/s received
401 <div class="mysparkline-overchart-value" id="netfilter.synproxy_syn_received.netdata1" >
403 <div data-netdata="netfilter.synproxy_syn_received"
404 data-dimensions="received"
405 data-host="//netdata1.firehol.org"
406 data-chart-library="dygraph"
407 data-dygraph-theme="sparkline"
408 data-dygraph-type="area"
412 data-colors="#558855"
413 data-show-value-of-received-at="netfilter.synproxy_syn_received.netdata1"
417 <div class="mysparkline">
418 <div class="mysparkline-overchart-label">
419 <b>US - Atlanta</b>, TCP SYN packets/s received
421 <div class="mysparkline-overchart-value" id="netfilter.synproxy_syn_received.netdata2" >
423 <div data-netdata="netfilter.synproxy_syn_received"
424 data-dimensions="received"
425 data-host="//netdata2.firehol.org"
426 data-chart-library="dygraph"
427 data-dygraph-theme="sparkline"
428 data-dygraph-type="area"
432 data-colors="#885555"
433 data-show-value-of-received-at="netfilter.synproxy_syn_received.netdata2"
437 <div class="mysparkline">
438 <div class="mysparkline-overchart-label">
439 <b>EU - Greece</b>, TCP SYN packets/s received
441 <div class="mysparkline-overchart-value" id="netfilter.synproxy_syn_received.netdata3" >
443 <div data-netdata="netfilter.synproxy_syn_received"
444 data-dimensions="received"
445 data-host="//netdata3.firehol.org"
446 data-chart-library="dygraph"
447 data-dygraph-theme="sparkline"
448 data-dygraph-type="area"
452 data-colors="#555588"
453 data-show-value-of-received-at="netfilter.synproxy_syn_received.netdata3"
457 <div style="width: 100%; text-align: right; font-size: 1vw;">
458 <i class="fa fa-comment" aria-hidden="true"></i> <i>did you notice the decimal numbers?
459 <br/>netdata interpolates collected values at second boundaries, with nanosecond detail!</i>
463 <div style="padding-top: 4vw; font-size: 1.5vw;">
464 CPU Utilization on our servers
467 <div style="padding-top: 1vw;">
468 <div class="myfullchart">
469 <div data-netdata="system.cpu"
470 data-host="//netdata1.firehol.org"
471 data-chart-library="dygraph"
472 data-title="EU - London, CPU Usage"
479 <div class="myfullchart">
480 <div data-netdata="system.cpu"
481 data-host="//netdata2.firehol.org"
482 data-chart-library="dygraph"
483 data-title="US - Atlanta, CPU Usage"
490 <div class="myfullchart">
491 <div data-netdata="system.cpu"
492 data-host="//netdata3.firehol.org"
493 data-chart-library="dygraph"
494 data-title="EU - Greece, CPU Usage"
501 <div style="width: 100%; text-align: right; font-size: 1vw;">
502 <i class="fa fa-comment" aria-hidden="true"></i> <i>what does it take so much CPU?
503 <br/>The site <a href="//iplists.firehol.org/">iplists.firehol.org</a> is maintained by FireHOL - the CPU is used for comparing security IP Lists.</i>
506 <div style="padding-top: 4vw; width: 100%; text-align: center; font-size: 1.5vw;">
507 <div style="padding-top: 1vw; padding-bottom: 1vw;">
508 CPU Usage of the netdata user
510 netdata monitors <b>users</b>, <b>user groups</b>, <b>applications (process trees)</b>
512 and <b>containers</b> (<code>lxc</code>, <code>docker</code>, etc.)
515 <div class="mysparkline">
516 <div class="mysparkline-overchart-label">
517 <b>EU - London</b>, CPU % of a single core
519 <div class="mysparkline-overchart-value" id="users.cpu.netdata1" >
521 <div data-netdata="users.cpu"
522 data-dimensions="netdata"
523 data-host="//netdata1.firehol.org"
524 data-chart-library="dygraph"
525 data-dygraph-theme="sparkline"
526 data-dygraph-type="area"
530 data-colors="#558855"
531 data-show-value-of-netdata-at="users.cpu.netdata1"
535 <div class="mysparkline">
536 <div class="mysparkline-overchart-label">
537 <b>US - Atlanta</b>, CPU % of a single core
539 <div class="mysparkline-overchart-value" id="users.cpu.netdata2" >
541 <div data-netdata="users.cpu"
542 data-dimensions="netdata"
543 data-host="//netdata2.firehol.org"
544 data-chart-library="dygraph"
545 data-dygraph-theme="sparkline"
546 data-dygraph-type="area"
550 data-colors="#885555"
551 data-show-value-of-netdata-at="users.cpu.netdata2"
555 <div class="mysparkline">
556 <div class="mysparkline-overchart-label">
557 <b>EU - Greece</b>, CPU % of a single core
559 <div class="mysparkline-overchart-value" id="users.cpu.netdata3" >
561 <div data-netdata="users.cpu"
562 data-dimensions="netdata"
563 data-host="//netdata3.firehol.org"
564 data-chart-library="dygraph"
565 data-dygraph-theme="sparkline"
566 data-dygraph-type="area"
570 data-colors="#555588"
571 data-show-value-of-netdata-at="users.cpu.netdata3"
575 <div style="width: 100%; text-align: right; font-size: 1vw;">
576 <i class="fa fa-comment" aria-hidden="true"></i> <i>this utilization is about the whole netdata process tree and the percentage is of <b>a single core</b>!
577 <br/>including <b>BASH</b> plugins (it monitors <code>mysql</code> on the demo sites), <b>node.js</b> plugins (it monitors <code>bind9</code> on the demo sites), etc.
578 <br/>and including the chart refreshes for the dashboards of all viewers.</i>
581 <div style="padding-top: 6vw; width: 100%; text-align: center; font-size: 2vw;">
584 jump to <a href="https://github.com/firehol/netdata/">the netdata page at github</a>!
586 remember to motivate us with a <b>Github Star</b>.