From 23e9964a6873708c1543ad69b03202392e895bb8 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 12 Feb 2017 11:37:31 +0200 Subject: [PATCH] show netdata version at the dashboard --- web/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 19a5fd5e..e2a2e07d 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 += '
  • add more charts
  • '; sidebar += '
  • add more alarms
  • '; - sidebar += '
  • netdata on ' + data.hostname.toString() + ', collects every ' + ((data.update_every == 1)?'second':data.update_every.toString() + ' seconds') + ' ' + data.dimensions_count.toLocaleString() + ' metrics, presented as ' + data.charts_count.toLocaleString() + ' charts and monitored by ' + data.alarms_count.toLocaleString() + ' 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.
  • '; + sidebar += '
  • netdata on ' + data.hostname.toString() + ', collects every ' + ((data.update_every == 1)?'second':data.update_every.toString() + ' seconds') + ' ' + data.dimensions_count.toLocaleString() + ' metrics, presented as ' + data.charts_count.toLocaleString() + ' charts and monitored by ' + data.alarms_count.toLocaleString() + ' 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.
     
    netdata
    v' + data.version.toString() +'
  • '; sidebar += ''; 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 -- 2.39.2