From 6d2e027eb728c8294fdd7c3692e9853b3ca2603b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Feb 2019 20:34:08 +0100 Subject: Merging upstream version 1.12.1. Signed-off-by: Daniel Baumann --- web/gui/dashboard_info.js | 64 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) (limited to 'web/gui/dashboard_info.js') diff --git a/web/gui/dashboard_info.js b/web/gui/dashboard_info.js index 00cac6317..4de6081ec 100644 --- a/web/gui/dashboard_info.js +++ b/web/gui/dashboard_info.js @@ -618,6 +618,10 @@ netdataDashboard.submenu = { // colors: the dimension colors of the chart (the default colors are appended) // height: the ratio of the chart height relative to the default // + +var cgroupCPULimitIsSet = 0; +var cgroupMemLimitIsSet = 0; + netdataDashboard.context = { 'system.cpu': { info: function (os) { @@ -1416,11 +1420,15 @@ netdataDashboard.context = { // ------------------------------------------------------------------------ // containers - 'cgroup.cpu': { + 'cgroup.cpu_limit': { + valueRange: "[0, null]", mainheads: [ function (os, id) { void(os); + cgroupCPULimitIsSet = 1; return '
'; + } + else + return ''; + } + ] + }, + + 'cgroup.mem_usage_limit': { mainheads: [ function (os, id) { void(os); + cgroupMemLimitIsSet = 1; return '
'; + } + else + return ''; + } + ] + }, + 'cgroup.throttle_io': { mainheads: [ function (os, id) { -- cgit v1.2.3