4 <title>NetData 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">
12 <meta name="author" content="costa@tsaousis.gr">
16 <div class="container-fluid">
18 <h1>NetData Custom Dashboard <div data-netdata="system.cpu" data-chart-library="sparkline" data-height="30" data-after="-600" data-sparkline-linecolor="#888"></div></h1>
20 This is a template for building custom dashboards. To build a dashboard you just do this:
26 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
27 <meta charset="utf-8">
28 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
29 <meta name="viewport" content="width=device-width, initial-scale=1">
30 <meta name="apple-mobile-web-app-capable" content="yes">
31 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
34 <div data-netdata="system.processes"
35 data-chart-library="dygraph"
41 <script type="text/javascript" src="http://netdata.server:19999/dashboard.js"></script>
46 <li>You can host your dashboard anywhere.</li>
47 <li>You can add as many charts as you like.</li>
48 <li>You can have charts from many different netdata servers (add <pre>data-host="http://another.netdata.server:19999/"</pre> to each chart).</li>
49 <li>You can use different chart libraries on the same page: <b>peity</b>, <b>sparkline</b>, <b>dygraph</b>, <b>google</b>, <b>morris</b></li>
50 <li>You can customize each chart to your preferences. For each chart library most of their attributes can be given in <b>data-</b> attributes.</li>
51 <li>Each chart can have each own duration - it is controlled with the <b>data-after</b> attribute to give that many seconds of data.</li>
52 <li>Depending on the width of the chart and <b>data-after</b> attribute, netdata will automatically refresh the chart when it needs to be updated. For example giving 600 pixels for width for -600 seconds of data, using a chart library that needs 3 pixels per point, will yeld in a chart updated once every 3 seconds.</li>
57 <h1>Sparkline Charts</h1>
58 Sparkline charts support 'NULL' values, so the charts can indicate that values are missing.
59 Sparkline charts stretch the values to show the variations between values in more detail.
60 They also have mouse-hover support.
62 <b>Sparklines are fantastic</b>. You can inline charts in text. For example this
63 <div data-netdata="system.cpu"
64 data-chart-library="sparkline"
68 ></div> is my current cpu usage (last 30 seconds),
70 <div data-netdata="netdata.net"
72 data-chart-library="sparkline"
76 ></div> is the bandwidth my netdata server is currently transmitting (last minute)
78 <div data-netdata="netdata.requests"
79 data-chart-library="sparkline"
83 ></div> is the requests/sec it serves (last 3 minutes).
86 <div style="width: 33%; display: inline-block;">
87 <div data-netdata="system.processes"
88 data-chart-library="sparkline"
92 data-dt-element-name="time101"
95 <small>rendered in <span id="time101">X</span> ms</small>
97 <div style="width: 33%; display: inline-block;">
98 <div data-netdata="system.ipv4"
99 data-chart-library="sparkline"
103 data-dt-element-name="time102"
106 <small>rendered in <span id="time102">X</span> ms</small>
108 <div style="width: 33%; display: inline-block;">
109 <div data-netdata="system.cpu"
110 data-chart-library="sparkline"
114 data-dt-element-name="time103"
117 <small>rendered in <span id="time103">X</span> ms</small>
123 <h1>Peity Charts</h1>
124 Peity charts do not support 'NULL' values, so the charts cannot indicate that values are missing.
125 Peity charts cannot have multiple dimensions on the charts - so netdata will use 'min2max' to show
126 the total of all dimensions.
128 <div style="width: 33%; display: inline-block;">
129 <div data-netdata="system.processes"
130 data-chart-library="peity"
134 data-dt-element-name="time001"
137 <small>rendered in <span id="time001">X</span> ms</small>
139 <div style="width: 33%; display: inline-block;">
140 <div data-netdata="system.ipv4"
141 data-chart-library="peity"
145 data-dt-element-name="time002"
148 <small>rendered in <span id="time002">X</span> ms</small>
150 <div style="width: 33%; display: inline-block;">
151 <div data-netdata="system.cpu"
152 data-chart-library="peity"
156 data-dt-element-name="time003"
159 <small>rendered in <span id="time003">X</span> ms</small>
166 <h1>Dygraph Charts</h1>
167 The fastest charting engine that can chart complete charts (not just sparklines).
168 The charts are zoomable (drag their contents to pan, shift with mouse wheel to zoom-in or zoom-out, double click to reset it).
169 <b>Netdata magic!</b> Realtime charts on your web page!
171 Sparklines using dygraphs
172 <div data-netdata="system.processes"
173 data-chart-library="dygraph"
174 data-dygraph-theme="sparkline"
180 are also possible! This
181 <div data-netdata="system.ipv4"
182 data-chart-library="dygraph"
183 data-dygraph-theme="sparkline"
189 is an area chart, while this
190 <div data-netdata="system.cpu"
191 data-chart-library="dygraph"
192 data-dygraph-theme="sparkline"
197 ></div> is a stacked area chart!
201 <div style="width: 33%; display: inline-block;">
202 <div data-netdata="system.processes"
203 data-chart-library="dygraph"
204 data-dygraph-theme="sparkline"
208 data-dt-element-name="time501"
211 <small>rendered in <span id="time501">X</span> ms</small>
213 <div style="width: 33%; display: inline-block;">
214 <div data-netdata="system.ipv4"
215 data-chart-library="dygraph"
216 data-dygraph-theme="sparkline"
220 data-dt-element-name="time502"
223 <small>rendered in <span id="time502">X</span> ms</small>
225 <div style="width: 33%; display: inline-block;">
226 <div data-netdata="system.cpu"
227 data-chart-library="dygraph"
228 data-dygraph-theme="sparkline"
232 data-dt-element-name="time503"
235 <small>rendered in <span id="time503">X</span> ms</small>
241 <div style="width: 33%; display: inline-block;">
242 <div data-netdata="system.processes"
243 data-chart-library="dygraph"
247 data-dt-element-name="time201"
250 <small>rendered in <span id="time201">X</span> ms</small>
252 <div style="width: 33%; display: inline-block;">
253 <div data-netdata="system.ipv4"
254 data-chart-library="dygraph"
258 data-dt-element-name="time202"
261 <small>rendered in <span id="time202">X</span> ms</small>
263 <div style="width: 33%; display: inline-block;">
264 <div data-netdata="system.cpu"
265 data-chart-library="dygraph"
269 data-dt-element-name="time203"
272 <small>rendered in <span id="time203">X</span> ms</small>
274 <div style="width: 33%; display: inline-block;">
275 <div data-netdata="system.io"
276 data-chart-library="dygraph"
280 data-dt-element-name="time204"
283 <small>rendered in <span id="time204">X</span> ms</small>
285 <div style="width: 33%; display: inline-block;">
286 <div data-netdata="apps.cpu"
287 data-chart-library="dygraph"
291 data-dt-element-name="time205"
294 <small>rendered in <span id="time205">X</span> ms</small>
296 <div style="width: 33%; display: inline-block;">
297 <div data-netdata="netdata.net"
298 data-chart-library="dygraph"
302 data-dt-element-name="time206"
305 <small>rendered in <span id="time206">X</span> ms</small>
307 <div style="width: 33%; display: inline-block;">
308 <div data-netdata="netdata.server_cpu"
309 data-chart-library="dygraph"
313 data-dt-element-name="time207"
316 <small>rendered in <span id="time207">X</span> ms</small>
318 <div style="width: 33%; display: inline-block;">
319 <div data-netdata="netdata.requests"
320 data-chart-library="dygraph"
324 data-dt-element-name="time208"
327 <small>rendered in <span id="time208">X</span> ms</small>
329 <div style="width: 33%; display: inline-block;">
330 <div data-netdata="net.gstag0"
331 data-chart-library="dygraph"
335 data-dt-element-name="time209"
338 <small>rendered in <span id="time209">X</span> ms</small>
345 <h1>Google Charts</h1>
346 NetData was originaly developed with Google Charts.
347 NetData is a complete Google Visualization API provider.
349 <div style="width: 33%; display: inline-block;">
350 <div data-netdata="system.processes"
351 data-chart-library="google"
355 data-dt-element-name="time301"
358 <small>rendered in <span id="time301">X</span> ms</small>
360 <div style="width: 33%; display: inline-block;">
361 <div data-netdata="system.ipv4"
362 data-chart-library="google"
366 data-dt-element-name="time302"
369 <small>rendered in <span id="time302">X</span> ms</small>
371 <div style="width: 33%; display: inline-block;">
372 <div data-netdata="system.cpu"
373 data-chart-library="google"
377 data-dt-element-name="time303"
380 <small>rendered in <span id="time303">X</span> ms</small>
389 <h1>Morris Charts</h1>
390 Unfortunatelly, Morris Charts are veeeeeeeeeeeeeeeery slow! We force them to lower their detail to get acceptable results.
392 <div style="width: 33%; display: inline-block;">
393 <div data-netdata="system.processes"
394 data-chart-library="morris"
398 data-dt-element-name="time401"
401 <small>rendered in <span id="time401">X</span> ms</small>
403 <div style="width: 33%; display: inline-block;">
404 <div data-netdata="system.ipv4"
405 data-chart-library="morris"
409 data-dt-element-name="time402"
412 <small>rendered in <span id="time402">X</span> ms</small>
414 <div style="width: 33%; display: inline-block;">
415 <div data-netdata="system.cpu"
416 data-chart-library="morris"
420 data-dt-element-name="time403"
423 <small>rendered in <span id="time403">X</span> ms</small>
429 </div> <!-- 1st container -->
432 <!-- you can set your netdata server globally, by ucommenting this -->
433 <!-- you can also give a different server per chart, with the attribute: data-host="http://netdata.server:19999" -->
434 <!-- <script> netdataServer = "http://box:19999"; </script> -->
436 <!-- load the dashboard manager - it will do the rest -->
437 <script type="text/javascript" src="dashboard.js"></script>