summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-12 11:37:31 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-12 11:37:31 +0200
commit23e9964a6873708c1543ad69b03202392e895bb8 (patch)
treea038b1c220d6851fc68b3162d7f9414893168430 /web
parent53fd22682de9e6a3e0c8c173a1b1b974d288dba6 (diff)
show netdata version at the dashboard
Diffstat (limited to 'web')
-rw-r--r--web/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 19a5fd5efc..e2a2e07d3c 100644
--- a/web/index.html
+++ b/web/index.html
@@ -873,6 +873,7 @@
submenu_names: {},
data: null,
hostname: 'netdata_server', // will be overwritten by the netdata server
+ version: 'unknown',
categories: [],
categories_idx: {},
families: [],
@@ -1420,7 +1421,7 @@
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>';
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>';
- 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>';
+ 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>';
sidebar += '</ul>';
div.innerHTML = html;
document.getElementById('sidebar').innerHTML = sidebar;
@@ -2252,6 +2253,7 @@
if(data !== null) {
options.hostname = data.hostname;
options.data = data;
+ options.version = data.version;
netdataDashboard.os = data.os;
// update the dashboard hostname