@cryptotaxi247 / netdata-1 / commits / 23e9964a6

show netdata version at the dashboard

Costa Tsaousis (ktsaou) committed Feb 12, 2017 at 11:37 UTC 23e9964a6873708c1543ad69b03202392e895bb8
1 file changed +3 -1
web/index.html
+3 -1
@@ -873,6 +873,7 @@
873 submenu_names: {},
874 data: null,
875 hostname: 'netdata_server', // will be overwritten by the netdata server
876 + version: 'unknown',
877 categories: [],
878 categories_idx: {},
879 families: [],
@@ -1420,7 +1421,7 @@
1421
1422 sidebar += '<li class="" style="padding-top:15px;"><a href="https://github.com/firehol/netdata/wiki/Add-more-charts-to-netdata" target="_blank"><i class="fa fa-plus" aria-hidden="true"></i> add more charts</a></li>';
1423 sidebar += '<li class=""><a href="https://github.com/firehol/netdata/wiki/Add-more-alarms-to-netdata" target="_blank"><i class="fa fa-plus" aria-hidden="true"></i> add more alarms</a></li>';
1423 - sidebar += '<li class="" style="margin:20px;color:#666;"><small>netdata on <b>' + data.hostname.toString() + '</b>, collects every ' + ((data.update_every == 1)?'second':data.update_every.toString() + ' seconds') + ' <b>' + data.dimensions_count.toLocaleString() + '</b> metrics, presented as <b>' + data.charts_count.toLocaleString() + '</b> charts and monitored by <b>' + data.alarms_count.toLocaleString() + '</b> alarms, using ' + Math.round(data.rrd_memory_bytes / 1024 / 1024).toLocaleString() + ' MB of memory for ' + Math.round(data.history / (3600/data.update_every)).toLocaleString() + ' ' + ((data.history == (3600/data.update_every))?'hour':'hours').toString() + ' of real-time history.</small></li>';
1424 + sidebar += '<li class="" style="margin:20px;color:#666;"><small>netdata on <b>' + data.hostname.toString() + '</b>, collects every ' + ((data.update_every == 1)?'second':data.update_every.toString() + ' seconds') + ' <b>' + data.dimensions_count.toLocaleString() + '</b> metrics, presented as <b>' + data.charts_count.toLocaleString() + '</b> charts and monitored by <b>' + data.alarms_count.toLocaleString() + '</b> alarms, using ' + Math.round(data.rrd_memory_bytes / 1024 / 1024).toLocaleString() + ' MB of memory for ' + Math.round(data.history / (3600/data.update_every)).toLocaleString() + ' ' + ((data.history == (3600/data.update_every))?'hour':'hours').toString() + ' of real-time history.<br/>&nbsp;<br/><b>netdata</b><br/>v' + data.version.toString() +'</small></li>';
1425 sidebar += '</ul>';
1426 div.innerHTML = html;
1427 document.getElementById('sidebar').innerHTML = sidebar;
@@ -2252,6 +2253,7 @@
2253 if(data !== null) {
2254 options.hostname = data.hostname;
2255 options.data = data;
2256 + options.version = data.version;
2257 netdataDashboard.os = data.os;
2258
2259 // update the dashboard hostname