]> arthur.barton.de Git - netdata.git/blob - web/dashboard_info.js
added dovecot icon
[netdata.git] / web / dashboard_info.js
1
2 var netdataDashboard = window.netdataDashboard || {};
3
4 // menu
5 // information about the main menus
6
7 netdataDashboard.menu = {
8     'system': {
9         title: 'System Overview',
10         icon: '<i class="fa fa-bookmark" aria-hidden="true"></i>',
11         info: 'Overview of the key system metrics.'
12     },
13
14     'ap': {
15         title: 'Access Points',
16         icon: '<i class="fa fa-wifi" aria-hidden="true"></i>',
17         info: undefined
18     },
19
20     'tc': {
21         title: 'Quality of Service',
22         icon: '<i class="fa fa-globe" aria-hidden="true"></i>',
23         info: 'Netdata collects and visualizes tc class utilization using its <a href="https://github.com/firehol/netdata/blob/master/plugins.d/tc-qos-helper.sh" target="_blank">tc-helper plugin</a>. If you also use <a href="http://firehol.org/#fireqos" target="_blank">FireQOS</a> for setting up QoS, netdata automatically collects interface and class names. If your QoS configuration includes overheads calculation, the values shown here will include these overheads (the total bandwidth for the same interface as reported in the Network Interfaces section, will be lower than the total bandwidth reported here). Also, data collection may have a slight time difference compared to the interface (QoS data collection is implemented with a BASH script, so a shift in data collection of a few milliseconds should be justified).'
24     },
25
26     'net': {
27         title: 'Network Interfaces',
28         icon: '<i class="fa fa-share-alt" aria-hidden="true"></i>',
29         info: 'Per network interface statistics collected from <code>/proc/net/dev</code>.'
30     },
31
32     'ipv4': {
33         title: 'IPv4 Networking',
34         icon: '<i class="fa fa-cloud" aria-hidden="true"></i>',
35         info: undefined
36     },
37
38     'ipv6': {
39         title: 'IPv6 Networking',
40         icon: '<i class="fa fa-cloud" aria-hidden="true"></i>',
41         info: undefined
42     },
43
44     'ipvs': {
45         title: 'IP Virtual Server',
46         icon: '<i class="fa fa-eye" aria-hidden="true"></i>',
47         info: undefined
48     },
49
50     'netfilter': {
51         title: 'Firewall (netfilter)',
52         icon: '<i class="fa fa-shield" aria-hidden="true"></i>',
53         info: undefined
54     },
55
56     'cpu': {
57         title: 'CPUs',
58         icon: '<i class="fa fa-bolt" aria-hidden="true"></i>',
59         info: undefined
60     },
61
62     'mem': {
63         title: 'Memory',
64         icon: '<i class="fa fa-bolt" aria-hidden="true"></i>',
65         info: undefined
66     },
67
68     'disk': {
69         title: 'Disks',
70         icon: '<i class="fa fa-folder" aria-hidden="true"></i>',
71         info: 'Charts with performance information for all the system disks. Special care has been given to present disk performance metrics in a way compatible with <code>iostat -x</code>. netdata by default prevents rendering performance charts for individual partitions and unmounted virtual disks. Disabled charts can still be enabled by altering the relative settings in the netdata configuration file.'
72     },
73
74     'sensors': {
75         title: 'Sensors',
76         icon: '<i class="fa fa-leaf" aria-hidden="true"></i>',
77         info: undefined
78     },
79
80     'nfsd': {
81         title: 'NFS Server',
82         icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
83         info: undefined
84     },
85
86     'nfs': {
87         title: 'NFS Client',
88         icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
89         info: undefined
90     },
91
92     'apps': {
93         title: 'Applications',
94         icon: '<i class="fa fa-heartbeat" aria-hidden="true"></i>',
95         info: 'Per application statistics are collected using netdata\'s <code>apps.plugin</code>. This plugin walks through the entire <code>/proc</code> filesystem and aggregates statistics for applications of interest, defined in <code>/etc/netdata/apps_groups.conf</code> (the default is <a href="https://github.com/firehol/netdata/blob/master/conf.d/apps_groups.conf" target="_blank">here</a>). The plugin internally builds a process tree (much like <code>ps fax</code> does), and groups processes together (evaluating both child and parent processes) so that the result is always a chart with a predefined set of dimensions (of course, only application groups found running are reported). The reported values are compatible with <code>top</code>, although the netdata plugin counts also the resources of exited children (unlike <code>top</code> which shows only the resources of the currently running processes). So for processes like shell scripts, the reported values include the resources used by the commands these scripts run within each timeframe.',
96         height: 1.5
97     },
98
99     'users': {
100         title: 'Users',
101         icon: '<i class="fa fa-user" aria-hidden="true"></i>',
102         info: 'Per user statistics are collected using netdata\'s <code>apps.plugin</code>. This plugin walks through the entire <code>/proc</code> filesystem and aggregates statistics per user. The reported values are compatible with <code>top</code>, although the netdata plugin counts also the resources of exited children (unlike <code>top</code> which shows only the resources of the currently running processes). So for processes like shell scripts, the reported values include the resources used by the commands these scripts run within each timeframe.',
103         height: 1.5
104     },
105
106     'groups': {
107         title: 'User Groups',
108         icon: '<i class="fa fa-users" aria-hidden="true"></i>',
109         info: 'Per user group statistics are collected using netdata\'s <code>apps.plugin</code>. This plugin walks through the entire <code>/proc</code> filesystem and aggregates statistics per user group. The reported values are compatible with <code>top</code>, although the netdata plugin counts also the resources of exited children (unlike <code>top</code> which shows only the resources of the currently running processes). So for processes like shell scripts, the reported values include the resources used by the commands these scripts run within each timeframe.',
110         height: 1.5
111     },
112
113     'netdata': {
114         title: 'Netdata Monitoring',
115         icon: '<i class="fa fa-bar-chart" aria-hidden="true"></i>',
116         info: undefined
117     },
118
119     'example': {
120         title: 'Example Charts',
121         info: undefined
122     },
123
124     'cgroup': {
125         title: '',
126         icon: '<i class="fa fa-th" aria-hidden="true"></i>',
127         info: undefined
128     },
129
130     'cgqemu': {
131         title: '',
132         icon: '<i class="fa fa-th-large" aria-hidden="true"></i>',
133         info: undefined
134     },
135
136     'fping': {
137         title: 'fping',
138         icon: '<i class="fa fa-exchange" aria-hidden="true"></i>',
139         info: undefined
140     },
141
142     'memcached': {
143         title: 'memcached',
144         icon: '<i class="fa fa-database" aria-hidden="true"></i>',
145         info: undefined
146     },
147
148     'mysql': {
149         title: 'MySQL',
150         icon: '<i class="fa fa-database" aria-hidden="true"></i>',
151         info: undefined
152     },
153
154     'postgres': {
155         title: 'Postgres',
156         icon: '<i class="fa fa-database" aria-hidden="true"></i>',
157         info: undefined
158     },
159
160     'redis': {
161         title: 'Redis',
162         icon: '<i class="fa fa-database" aria-hidden="true"></i>',
163         info: undefined
164     },
165
166     'retroshare': {
167         title: 'RetroShare',
168         icon: '<i class="fa fa-share-alt" aria-hidden="true"></i>',
169         info: undefined
170     },
171
172     'ipfs': {
173         title: 'IPFS',
174         icon: '<i class="fa fa-folder-open" aria-hidden="true"></i>',
175         info: undefined
176     },
177
178     'phpfpm': {
179         title: 'PHP-FPM',
180         icon: '<i class="fa fa-eye" aria-hidden="true"></i>',
181         info: undefined
182     },
183
184     'postfix': {
185         title: 'postfix',
186         icon: '<i class="fa fa-envelope" aria-hidden="true"></i>',
187         info: undefined
188     },
189
190     'dovecot': {
191         title: 'Dovecot',
192         icon: '<i class="fa fa-envelope" aria-hidden="true"></i>',
193         info: undefined
194     },
195
196     'nginx': {
197         title: 'nginx',
198         icon: '<i class="fa fa-eye" aria-hidden="true"></i>',
199         info: undefined
200     },
201
202     'apache': {
203         title: 'Apache',
204         icon: '<i class="fa fa-eye" aria-hidden="true"></i>',
205         info: undefined
206     },
207
208     'named': {
209         title: 'named',
210         icon: '<i class="fa fa-tag" aria-hidden="true"></i>',
211         info: undefined
212     },
213
214     'squid': {
215         title: 'squid',
216         icon: '<i class="fa fa-exchange" aria-hidden="true"></i>',
217         info: undefined
218     },
219
220     'nut': {
221         title: 'UPS',
222         icon: '<i class="fa fa-battery-half" aria-hidden="true"></i>',
223         info: undefined
224     },
225
226     'apcupsd': {
227         title: 'UPS',
228         icon: '<i class="fa fa-battery-half" aria-hidden="true"></i>',
229         info: undefined
230     },
231
232     'smawebbox': {
233         title: 'Solar Power',
234         icon: '<i class="fa fa-sun-o" aria-hidden="true"></i>',
235         info: undefined
236     },
237
238     'snmp': {
239         title: 'SNMP',
240         icon: '<i class="fa fa-random" aria-hidden="true"></i>',
241         info: undefined
242     }
243 };
244
245 // submenu
246 // information about the submenus
247 netdataDashboard.submenu = {
248     'mem.ksm': {
249         title: 'Memory Deduper',
250         info: 'Kernel Same-page Merging (KSM) performance monitoring, read from several files in <code>/sys/kernel/mm/ksm/</code>. KSM is a memory-saving de-duplication feature in the Linux kernel (since version 2.6.32). The KSM daemon ksmd periodically scans those areas of user memory which have been registered with it, looking for pages of identical content which can be replaced by a single write-protected page (which is automatically copied if a process later wants to update its content). KSM was originally developed for use with KVM (where it was known as Kernel Shared Memory), to fit more virtual machines into physical memory, by sharing the data common between them.  But it can be useful to any application which generates many instances of the same data.'
251     },
252
253     'ipv4.ecn': {
254         info: '<a href="https://en.wikipedia.org/wiki/Explicit_Congestion_Notification" target="_blank">Explicit Congestion Notification (ECN)</a> is a TCP extension that allows end-to-end notification of network congestion without dropping packets. ECN is an optional feature that may be used between two ECN-enabled endpoints when the underlying network infrastructure also supports it.'
255     },
256
257     'netfilter.conntrack': {
258         title: 'Connection Tracker',
259         info: 'Netfilter Connection Tracker performance monitoring, read from <code>/proc/net/stat/nf_conntrack</code>. The connection tracker keeps track of all connections of the machine, inbound and outbound. It works by keeping a database with all open connections, tracking network and address translation and connection expectations.'
260     },
261
262     'netfilter.nfacct': {
263         title: 'Bandwidth Accounting',
264         info: 'The following information is read using the <code>nfacct.plugin</code>.'
265     },
266
267     'netfilter.synproxy': {
268         title: 'DDoS Protection',
269         info: 'DDoS Protection performance monitoring read from <code>/proc/net/stat/synproxy</code>. <a href="https://github.com/firehol/firehol/wiki/Working-with-SYNPROXY" target="_blank">SYNPROXY</a> is a TCP SYN packets proxy. It is used to protect any TCP server (like a web server) from SYN floods and similar DDoS attacks. It is a netfilter module, in the Linux kernel (since version 3.12). It is optimized to handle millions of packets per second utilizing all CPUs available without any concurrency locking between the connections. It can be used for any kind of TCP traffic (even encrypted), since it does not interfere with the content itself.'
270     },
271
272     'system.softnet_stat': {
273         title: 'softnet',
274         info: 'Statistics for CPUs SoftIRQs related to network receive work, read from <code>/proc/net/softnet_stat</code>. Break down per CPU core can be found at <a href="#cpu_softnet_stat">CPU / softnet statistics</a>. <b>processed</b> states the number of packets processed, <b>dropped</b> is the number packets dropped because the network device backlog was full (to fix them use <code>sysctl</code> to increase <code>net.core.netdev_max_backlog</code>), <b>squeezed</b> is the number of packets dropped because the network device budget ran out (to fix them use <code>sysctl</code> to increase <code>net.core.netdev_budget</code>). More information about identifying and troubleshooting network driver related issues can be found at <a href="https://access.redhat.com/sites/default/files/attachments/20150325_network_performance_tuning.pdf" target="_blank">Red Hat Enterprise Linux Network Performance Tuning Guide</a>.'
275     },
276
277     'cpu.softnet_stat': {
278         title: 'softnet',
279         info: 'Statistics for per CPUs core SoftIRQs related to network receive work, read from <code>/proc/net/softnet_stat</code>. Total for all CPU cores can be found at <a href="#system_softnet_stat">System / softnet statistics</a>. <b>processed</b> states the number of packets processed, <b>dropped</b> is the number packets dropped because the network device backlog was full (to fix them use <code>sysctl</code> to increase <code>net.core.netdev_max_backlog</code>), <b>squeezed</b> is the number of packets dropped because the network device budget ran out (to fix them use <code>sysctl</code> to increase <code>net.core.netdev_budget</code>). More information about identifying and troubleshooting network driver related issues can be found at <a href="https://access.redhat.com/sites/default/files/attachments/20150325_network_performance_tuning.pdf" target="_blank">Red Hat Enterprise Linux Network Performance Tuning Guide</a>.'
280     }
281 };
282
283 // chart
284 // information works on the context of a chart
285 // Its purpose is to set:
286 //
287 // info: the text above the charts
288 // heads: the representation of the chart at the top the subsection (second level menu)
289 // mainheads: the representation of the chart at the top of the section (first level menu)
290 // colors: the dimension colors of the chart (the default colors are appended)
291 // height: the ratio of the chart height relative to the default
292 //
293 netdataDashboard.context = {
294     'system.cpu': {
295         info: 'Total CPU utilization (all cores). 100% here means there is no CPU idle time at all. You can get per core usage at the <a href="#cpu">CPUs</a> section and per application usage at the <a href="#apps">Applications Monitoring</a> section.<br/>Keep an eye on <b>iowait</b> ' + sparkline('system.cpu', 'iowait', '%') + '. If it is constantly high, your disks are a bottleneck and they slow your system down.<br/>Another important metric worth monitoring, is <b>softirq</b> ' + sparkline('system.cpu', 'softirq', '%') + '. A constantly high percentage of softirq may indicate network drivers issues.',
296         valueRange: "[0, 100]"
297     },
298
299     'system.load': {
300         info: 'Current system load, i.e. the number of processes using CPU or waiting for system resources (usually CPU and disk). The 3 metrics refer to 1, 5 and 15 minute averages. Linux calculates this once every 5 seconds. Netdata reads them from <code>/proc/loadavg</code>. For more information check <a href="https://en.wikipedia.org/wiki/Load_(computing)" target="_blank">this wikipedia article</a>',
301         height: 0.7
302     },
303
304     'system.io': {
305         info: 'Total Disk I/O, for all disks, read from <code>/proc/vmstat</code>. You can get detailed information about each disk at the <a href="#disk">Disks</a> section and per application Disk usage at the <a href="#apps">Applications Monitoring</a> section.'
306     },
307
308     'system.swapio': {
309         info: 'Total Swap I/O, read from <code>/proc/vmstat</code>. (netdata measures both <code>in</code> and <code>out</code>. If either of them is not shown in the chart, it is because it is zero - you can change the page settings to always render all the available dimensions on all charts).'
310     },
311
312     'system.pgfaults': {
313         info: 'Total page faults, read from <code>/proc/vmstat</code>. <b>Major page faults</b> indicates that the system is using its swap. You can find which applications use the swap at the <a href="#apps">Applications Monitoring</a> section.'
314     },
315
316     'system.entropy': {
317         colors: '#CC22AA',
318         info: '<a href="https://en.wikipedia.org/wiki/Entropy_(computing)" target="_blank">Entropy</a>, read from <code>/proc/sys/kernel/random/entropy_avail</code>, is like a pool of random numbers (<a href="https://en.wikipedia.org/wiki//dev/random" target="_blank">/dev/random</a>) that are mainly used in cryptography. It is advised that the pool remains always <a href="https://blog.cloudflare.com/ensuring-randomness-with-linuxs-random-number-generator/" target="_blank">above 200</a>. If the pool of entropy gets empty, you risk your security to be predictable and you should install a user-space random numbers generating daemon, like <code>haveged</code> or <code>rng-tools</code> (i.e. <b>rngd</b>), to keep the pool in healthy levels.'
319     },
320
321     'system.forks': {
322         colors: '#5555DD',
323         info: 'The number of new processes created per second, read from <code>/proc/stat</code>.'
324     },
325
326     'system.intr': {
327         colors: '#DD5555',
328         info: 'Total number of CPU interrupts, read from <code>/proc/stat</code>. Check <code>system.interrupts</code> that gives more detail about each interrupt and also the <a href="#cpu">CPUs</a> section where interrupts are analyzed per CPU core.'
329     },
330
331     'system.interrupts': {
332         info: 'CPU interrupts in detail, read from <code>/proc/interrupts</code>. At the <a href="#cpu">CPUs</a> section, interrupts are analyzed per CPU core.'
333     },
334
335     'system.softirqs': {
336         info: 'CPU softirqs in detail, read from <code>/proc/softirqs</code>. At the <a href="#cpu">CPUs</a> section, softirqs are analyzed per CPU core.'
337     },
338
339     'system.processes': {
340         info: 'System processes, read from <code>/proc/stat</code>. <b>Running</b> are the processes in the CPU. <b>Blocked</b> are processes that are willing to enter the CPU, but they cannot, e.g. because they wait for disk activity.'
341     },
342
343     'system.active_processes': {
344         info: 'All system processes, read from <code>/proc/loadavg</code>.'
345     },
346
347     'system.ctxt': {
348         info: '<a href="https://en.wikipedia.org/wiki/Context_switch" target="_blank">Context Switches</a>, read from <code>/proc/stat</code>, is the switching of the CPU from one process, task or thread to another. If there are many processes or threads willing to execute and very few CPU cores available to handle them, the system is making more context switching to balance the CPU resources among them. The whole process is computationally intensive. The more the context switches, the slower the system gets.'
349     },
350
351     'system.idlejitter': {
352         colors: '#5555AA',
353         info: 'Idle jitter is calculated by netdata. A thread is spawned that requests to sleep for a few microseconds. When the system wakes it up, it measures how many microseconds have passed. The difference between the requested and the actual duration of the sleep, is the <b>idle jitter</b>. This number is useful in real-time environments, where CPU jitter can affect the quality of the service (like VoIP media gateways).'
354     },
355
356     'system.ipv4': {
357         info: 'Total IPv4 Traffic, read from <code>/proc/net/netstat</code>.'
358     },
359
360     'system.ipv6': {
361         info: 'Total IPv6 Traffic, read from <code>/proc/net/snmp6</code>.'
362     },
363
364     'system.ram': {
365         info: 'System memory, read from <code>/proc/meminfo</code>.'
366     },
367
368     'system.swap': {
369         info: 'System swap memory, read from <code>/proc/meminfo</code>.'
370     },
371
372     // ------------------------------------------------------------------------
373     // MEMORY
374
375     'mem.ksm_savings': {
376         heads: [
377             netdataDashboard.gaugeChart('Saved', '12%', 'savings', '#0099CC')
378         ]
379     },
380
381     'mem.ksm_ratios': {
382         heads: [
383             function(id) {
384                 return  '<div data-netdata="' + id + '"'
385                     + ' data-gauge-max-value="100"'
386                     + ' data-chart-library="gauge"'
387                     + ' data-title="Savings"'
388                     + ' data-units="percentage %"'
389                     + ' data-gauge-adjust="width"'
390                     + ' data-width="12%"'
391                     + ' data-before="0"'
392                     + ' data-after="-CHART_DURATION"'
393                     + ' data-points="CHART_DURATION"'
394                     + ' role="application"></div>';
395             }
396         ]
397     },
398
399     'mem.committed': {
400         colors: NETDATA.colors[3]
401     },
402     
403     'mem.pgfaults': {
404         info: 'A <a href="https://en.wikipedia.org/wiki/Page_fault" target="_blank">page fault</a> is a type of interrupt, called trap, raised by computer hardware when a running program accesses a memory page that is mapped into the virtual address space, but not actually loaded into main memory. If the page is loaded in memory at the time the fault is generated, but is not marked in the memory management unit as being loaded in memory, then it is called a <b>minor</b> or soft page fault. A <b>major</b> page fault is generated when the system needs to load the memory page from disk or swap memory. These values are read from <code>/proc/vmstat</code>.'
405     },
406
407     'mem.committed': {
408         info: 'Committed Memory, read from <code>/proc/meminfo</code>, is the sum of all memory which has been allocated by processes.'
409     },
410
411     'mem.writeback': {
412         info: 'Read from <code>/proc/meminfo</code>, <b>Dirty</b> is the amount of memory waiting to be written to disk. <b>Writeback</b> is how much memory is actively being written to disk.'
413     },
414
415     'mem.kernel': {
416         info: 'Read from <code>/proc/meminfo</code>, This chart displays the total ammount of memory being used by the kernel. <b>Slab</b> is the amount of memory used by the kernel to cache data structures for its own use. <b>KernelStack</b> is the amount of memory allocated for each task done by the kernel. <b>PageTables</b> is the amount of memory decicated to the lowest level of page tables (A page table is used to turn a virtual address into a physical memory address). <b>VmallocUsed</b> is the amount of memory being used as virtual address space.'
417     },
418
419     'mem.slab': {
420         info: 'Read from <code>/proc/meminfo</code>, <b>reclaimable</b> is the amount of memory which the kernel can reuse. <b>unreclaimable</b> can not be reused even when the kernel is lacking memory.'
421     },
422
423     // ------------------------------------------------------------------------
424     // network interfaces
425
426     'net.drops': {
427         info: 'Packets that have been dropped at the network interface level. These are the same counters reported by <code>ifconfig</code> as <code>RX dropped</code> (inbound) and <code>TX dropped</code> (outbound). <b>inbound</b> packets can be dropped at the network interface level due to <a href="#system_softnet_stat">softnet backlog</a> overflow, bad / unintented VLAN tags, unknown or unregistered protocols, IPv6 frames when the server is not configured for IPv6. Check <a href="https://www.novell.com/support/kb/doc.php?id=7007165" target="_blank">this document</a> for more information.'
428     },
429
430     // ------------------------------------------------------------------------
431     // IPv4
432
433     'ipv4.tcpmemorypressures': {
434         info: 'Number of times a socket was put in <b>memory pressure</b> due to a non fatal memory allocation failure (the kernel attempts to work around this situation by reducing the send buffers, etc).'
435     },
436
437     'ipv4.tcpconnaborts': {
438         info: 'TCP connection aborts. <b>baddata</b> (<code>TCPAbortOnData</code>) happens while the connection is on <code>FIN_WAIT1</code> and the kernel receives a packet with a sequence number beyond the last one for this connection - the kernel responds with <code>RST</code> (closes the connection). <b>userclosed</b> (<code>TCPAbortOnClose</code>) happens when the kernel receives data on an already closed connection and responds with <code>RST</code>. <b>nomemory</b> (<code>TCPAbortOnMemory</code> happens when there are too many orphaned sockets (not attached to an fd) and the kernel has to drop a connection - sometimes it will send an <code>RST</code>, sometimes it won\'t. <b>timeout</b> (<code>TCPAbortOnTimeout</code>) happens when a connection times out. <b>linger</b> (<code>TCPAbortOnLinger</code>) happens when the kernel killed a socket that was already closed by the application and lingered around for long enough. <b>failed</b> (<code>TCPAbortFailed</code>) happens when the kernel attempted to send an <code>RST</code> but failed because there was no memory available.'
439     },
440
441     // ------------------------------------------------------------------------
442     // APPS
443
444     'apps.cpu': {
445         height: 2.0
446     },
447
448     'apps.mem': {
449         info: 'Real memory (RAM) used by applications. This does not include shared memory.'
450     },
451
452     'apps.vmem': {
453         info: 'Virtual memory allocated by applications. Please check <a href="https://github.com/firehol/netdata/wiki/netdata-virtual-memory-size" target="_blank">this article</a> for more information.'
454     },
455
456     'apps.preads': {
457         height: 2.0
458     },
459
460     'apps.pwrites': {
461         height: 2.0
462     },
463
464     // ------------------------------------------------------------------------
465     // USERS
466
467     'users.cpu': {
468         height: 2.0
469     },
470
471     'users.mem': {
472         info: 'Real memory (RAM) used per user. This does not include shared memory.'
473     },
474
475     'users.vmem': {
476         info: 'Virtual memory allocated per user. Please check <a href="https://github.com/firehol/netdata/wiki/netdata-virtual-memory-size" target="_blank">this article</a> for more information.'
477     },
478
479     'users.preads': {
480         height: 2.0
481     },
482
483     'users.pwrites': {
484         height: 2.0
485     },
486
487     // ------------------------------------------------------------------------
488     // GROUPS
489
490     'groups.cpu': {
491         height: 2.0
492     },
493
494     'groups.mem': {
495         info: 'Real memory (RAM) used per user group. This does not include shared memory.'
496     },
497
498     'groups.vmem': {
499         info: 'Virtual memory allocated per user group. Please check <a href="https://github.com/firehol/netdata/wiki/netdata-virtual-memory-size" target="_blank">this article</a> for more information.'
500     },
501
502     'groups.preads': {
503         height: 2.0
504     },
505
506     'groups.pwrites': {
507         height: 2.0
508     },
509
510     // ------------------------------------------------------------------------
511     // NETWORK QoS
512
513     'tc.qos': {
514         heads: [
515             function(id) {
516                 if(id.match(/.*-ifb$/))
517                     return netdataDashboard.gaugeChart('Inbound', '12%', '', '#5555AA');
518                 else
519                     return netdataDashboard.gaugeChart('Outbound', '12%', '', '#AA9900');
520             }
521         ]
522     },
523
524     // ------------------------------------------------------------------------
525     // NETWORK INTERFACES
526
527     'net.net': {
528         heads: [
529             netdataDashboard.gaugeChart('Received', '12%', 'received'),
530             netdataDashboard.gaugeChart('Sent', '12%', 'sent')
531         ]
532     },
533
534     // ------------------------------------------------------------------------
535     // NETFILTER
536
537     'netfilter.sockets': {
538         colors: '#88AA00',
539         heads: [
540             netdataDashboard.gaugeChart('Active Connections', '12%', '', '#88AA00')
541         ]
542     },
543
544     'netfilter.new': {
545         heads: [
546             netdataDashboard.gaugeChart('New Connections', '12%', 'new', '#5555AA')
547         ]
548     },
549
550     // ------------------------------------------------------------------------
551     // DISKS
552
553     'disk.util': {
554         colors: '#FF5588',
555         heads: [
556             netdataDashboard.gaugeChart('Utilization', '12%', '', '#FF5588')
557         ],
558         info: 'Disk Utilization measures the amount of time the disk was busy with something. This is not related to its performance. 100% means that the Linux kernel always had an outstanding operation on the disk. Keep in mind that depending on the underlying technology of the disk, 100% here may or may not be an indication of congestion.'
559     },
560
561     'disk.backlog': {
562         colors: '#0099CC',
563         info: 'Backlog is an indication of the duration of pending disk operations. On every I/O event the Linux kernel is multiplying the time spent doing I/O since the last update of this field with the number of pending operations. While not accurate, this metric can provide an indication of the expected completion time of the operations in progress.'
564     },
565
566     'disk.io': {
567         heads: [
568             netdataDashboard.gaugeChart('Read', '12%', 'reads'),
569             netdataDashboard.gaugeChart('Write', '12%', 'writes')
570         ],
571         info: 'Amount of data transferred to and from disk.'
572     },
573
574     'disk.ops': {
575         info: 'Completed disk I/O operations. Keep in mind the number of operations requested might be higher, since the Linux kernel is able to merge adjacent to each other (see merged operations chart).'
576     },
577
578     'disk.qops': {
579         info: 'I/O operations currently in progress. This metric is a snapshot - it is not an average over the last interval.'
580     },
581
582     'disk.iotime': {
583         height: 0.5,
584         info: 'The sum of the duration of all completed I/O operations. This number can exceed the interval if the disk is able to execute I/O operations in parallel.'
585     },
586     'disk.mops': {
587         height: 0.5,
588         info: 'The number of merged disk operations. The Linux kernel is able to merge adjacent I/O operations, for example two 4KB reads can become one 8KB read before given to disk.'
589     },
590     'disk.svctm': {
591         height: 0.5,
592         info: 'The average service time for completed I/O operations. This metric is calculated using the total busy time of the disk and the number of completed operations. If the disk is able to execute multiple parallel operations the reporting average service time will be misleading.'
593     },
594     'disk.avgsz': {
595         height: 0.5,
596         info: 'The average I/O operation size.'
597     },
598     'disk.await': {
599         height: 0.5,
600         info: 'The average time for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.'
601     },
602
603     'disk.space': {
604         info: 'Disk space utilization. reserved for root is automatically reserved by the system to prevent the root user from getting out of space.'
605     },
606     'disk.inodes': {
607         info: 'inodes (or index nodes) are filesystem objects (e.g. files and directories). On many types of file system implementations, the maximum number of inodes is fixed at filesystem creation, limiting the maximum number of files the filesystem can hold. It is possible for a device to run out of inodes. When this happens, new files cannot be created on the device, even though there may be free space available.'
608     },
609
610     'mysql.net': {
611         info: 'The amount of data sent to mysql clients (<strong>out</strong>) and received from mysql clients (<strong>in</strong>).'
612     },
613
614     // ------------------------------------------------------------------------
615     // MYSQL
616
617     'mysql.queries': {
618         info: 'The number of statements executed by the server.<ul>' +
619         '<li><strong>queries</strong> counts the statements executed within stored SQL programs.</li>' +
620         '<li><strong>questions</strong> counts the statements sent to the mysql server by mysql clients.</li>' +
621         '<li><strong>slow queries</strong> counts the number of statements that took more than <a href="http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_long_query_time" target="_blank">long_query_time</a> seconds to be executed.' +
622         ' For more information about slow queries check the mysql <a href="http://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html" target="_blank">slow query log</a>.</li>' +
623         '</ul>'
624     },
625
626     'mysql.handlers': {
627         info: 'Usage of the internal handlers of mysql. This chart provides very good insights of what the mysql server is actually doing.' +
628         ' (if the chart is not showing all these dimensions it is because they are zero - set <strong>Which dimensions to show?</strong> to <strong>All</strong> from the dashboard settings, to render even the zero values)<ul>' +
629         '<li><strong>commit</strong>, the number of internal <a href="http://dev.mysql.com/doc/refman/5.7/en/commit.html" target="_blank">COMMIT</a> statements.</li>' +
630         '<li><strong>delete</strong>, the number of times that rows have been deleted from tables.</li>' +
631         '<li><strong>prepare</strong>, a counter for the prepare phase of two-phase commit operations.</li>' +
632         '<li><strong>read first</strong>, the number of times the first entry in an index was read. A high value suggests that the server is doing a lot of full index scans; e.g. <strong>SELECT col1 FROM foo</strong>, with col1 indexed.</li>' +
633         '<li><strong>read key</strong>, the number of requests to read a row based on a key. If this value is high, it is a good indication that your tables are properly indexed for your queries.</li>' +
634         '<li><strong>read next</strong>, the number of requests to read the next row in key order. This value is incremented if you are querying an index column with a range constraint or if you are doing an index scan.</li>' +
635         '<li><strong>read prev</strong>, the number of requests to read the previous row in key order. This read method is mainly used to optimize <strong>ORDER BY ... DESC</strong>.</li>' +
636         '<li><strong>read rnd</strong>, the number of requests to read a row based on a fixed position. A high value indicates you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan entire tables or you have joins that do not use keys properly.</li>' +
637         '<li><strong>read rnd next</strong>, the number of requests to read the next row in the data file. This value is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.</li>' +
638         '<li><strong>rollback</strong>, the number of requests for a storage engine to perform a rollback operation.</li>' +
639         '<li><strong>savepoint</strong>, the number of requests for a storage engine to place a savepoint.</li>' +
640         '<li><strong>savepoint rollback</strong>, the number of requests for a storage engine to roll back to a savepoint.</li>' +
641         '<li><strong>update</strong>, the number of requests to update a row in a table.</li>' +
642         '<li><strong>write</strong>, the number of requests to insert a row in a table.</li>' +
643         '</ul>'
644     },
645
646     'mysql.table_locks': {
647         info: 'MySQL table locks counters: <ul>' +
648         '<li><strong>immediate</strong>, the number of times that a request for a table lock could be granted immediately.</li>' +
649         '<li><strong>waited</strong>, the number of times that a request for a table lock could not be granted immediately and a wait was needed. If this is high and you have performance problems, you should first optimize your queries, and then either split your table or tables or use replication.</li>' +
650         '</ul>'
651     },
652
653     // ------------------------------------------------------------------------
654     // APACHE
655
656     'apache.connections': {
657         colors: NETDATA.colors[4],
658         mainheads: [
659             netdataDashboard.gaugeChart('Connections', '12%', '', NETDATA.colors[4])
660         ]
661     },
662
663     'apache.requests': {
664         colors: NETDATA.colors[0],
665         mainheads: [
666             netdataDashboard.gaugeChart('Requests', '12%', '', NETDATA.colors[0])
667         ]
668     },
669
670     'apache.net': {
671         colors: NETDATA.colors[3],
672         mainheads: [
673             netdataDashboard.gaugeChart('Bandwidth', '12%', '', NETDATA.colors[3])
674         ]
675     },
676
677     'apache.workers': {
678         mainheads: [
679             function(id) {
680                 return  '<div data-netdata="' + id + '"'
681                     + ' data-dimensions="busy"'
682                     + ' data-append-options="percentage"'
683                     + ' data-gauge-max-value="100"'
684                     + ' data-chart-library="gauge"'
685                     + ' data-title="Workers Utilization"'
686                     + ' data-units="percentage %"'
687                     + ' data-gauge-adjust="width"'
688                     + ' data-width="12%"'
689                     + ' data-before="0"'
690                     + ' data-after="-CHART_DURATION"'
691                     + ' data-points="CHART_DURATION"'
692                     + ' role="application"></div>';
693             }
694         ]
695     },
696
697     'apache.bytesperreq': {
698         colors: NETDATA.colors[3],
699         height: 0.5
700     },
701
702     'apache.reqpersec': {
703         colors: NETDATA.colors[4],
704         height: 0.5
705     },
706
707     'apache.bytespersec': {
708         colors: NETDATA.colors[6],
709         height: 0.5
710     },
711
712
713     // ------------------------------------------------------------------------
714     // NGINX
715
716     'nginx.connections': {
717         colors: NETDATA.colors[4],
718         mainheads: [
719             netdataDashboard.gaugeChart('Connections', '12%', '', NETDATA.colors[4])
720         ]
721     },
722
723     'nginx.requests': {
724         colors: NETDATA.colors[0],
725         mainheads: [
726             netdataDashboard.gaugeChart('Requests', '12%', '', NETDATA.colors[0])
727         ]
728     },
729
730     // ------------------------------------------------------------------------
731     // NETDATA
732
733     'netdata.response_time': {
734         info: 'The netdata API response time measures the time netdata needed to serve requests. This time includes everything, from the reception of the first byte of a request, to the dispatch of the last byte of its reply, therefore it includes all network latencies involved (i.e. a client over a slow network will influence these metrics).'
735     },
736
737     // ------------------------------------------------------------------------
738     // RETROSHARE
739
740     'retroshare.bandwidth': {
741         info: 'RetroShare inbound and outbound traffic.',
742         mainheads: [
743             netdataDashboard.gaugeChart('Received', '12%', 'bandwidth_down_kb'),
744             netdataDashboard.gaugeChart('Sent', '12%', 'bandwidth_up_kb')
745         ]
746     },
747
748     'retroshare.peers': {
749         info: 'Number of (connected) RetroShare friends.',
750         mainheads: [
751             function(id) {
752                 return  '<div data-netdata="' + id + '"'
753                     + ' data-dimensions="peers_connected"'
754                     + ' data-append-options="friends"'
755                     + ' data-chart-library="easypiechart"'
756                     + ' data-title="connected friends"'
757                     + ' data-units=""'
758                     + ' data-width="8%"'
759                     + ' data-before="0"'
760                     + ' data-after="-CHART_DURATION"'
761                     + ' data-points="CHART_DURATION"'
762                     + ' role="application"></div>';
763             }
764         ]
765     },
766
767     'retroshare.dht': {
768         info: 'Statistics about RetroShare\'s DHT. These values are estimated!'
769     },
770
771     // ------------------------------------------------------------------------
772     // fping
773
774     'fping.quality': {
775         colors: NETDATA.colors[10],
776         height: 0.5
777     },
778
779     'fping.packets': {
780         height: 0.5
781     }
782
783 };