ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odiache...@apache.org
Subject ambari git commit: AMBARI-15191. Show swap memory for HAWQ Segment hosts(mithmatt via odiachenko).
Date Mon, 29 Feb 2016 19:51:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 db7ebc0c8 -> c784ea16c


AMBARI-15191. Show swap memory for HAWQ Segment hosts(mithmatt via odiachenko).


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c784ea16
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c784ea16
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c784ea16

Branch: refs/heads/branch-2.2
Commit: c784ea16c22ff6adc5073f9c3ae6fc57cf68bbdb
Parents: db7ebc0
Author: Oleksandr Diachenko <odiachenko@pivotal.io>
Authored: Mon Feb 29 11:50:59 2016 -0800
Committer: Oleksandr Diachenko <odiachenko@pivotal.io>
Committed: Mon Feb 29 11:50:59 2016 -0800

----------------------------------------------------------------------
 .../common-services/HAWQ/2.0.0/widgets.json     | 24 ++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c784ea16/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json
index 48ae989..95a6c3f 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json
@@ -135,28 +135,44 @@
           "is_visible": true,
           "metrics": [
             {
-              "name": "mem_total",
+              "name": "mem_total._sum",
               "metric_path": "metrics/memory/mem_total",
               "service_name": "HAWQ",
               "component_name": "HAWQSEGMENT"
             },
             {
-              "name": "mem_free",
+              "name": "mem_free._sum",
               "metric_path": "metrics/memory/mem_free",
               "service_name": "HAWQ",
               "component_name": "HAWQSEGMENT"
             },
             {
-              "name": "mem_cached",
+              "name": "mem_cached._sum",
               "metric_path": "metrics/memory/mem_cached",
               "service_name": "HAWQ",
               "component_name": "HAWQSEGMENT"
+            },
+            {
+              "name": "swap_total._sum",
+              "metric_path": "metrics/memory/swap_total",
+              "service_name": "HAWQ",
+              "component_name": "HAWQSEGMENT"
+            },
+            {
+              "name": "swap_free._sum",
+              "metric_path": "metrics/memory/swap_free",
+              "service_name": "HAWQ",
+              "component_name": "HAWQSEGMENT"
             }
           ],
           "values": [
             {
               "name": "Memory utilization",
-              "value": "${((mem_total - mem_free - mem_cached)/mem_total) * 100}"
+              "value": "${((mem_total._sum - mem_free._sum - mem_cached._sum)/mem_total._sum)
* 100}"
+            },
+            {
+              "name": "Swap utilization",
+              "value": "${((swap_total._sum - swap_free._sum)/swap_total._sum) * 100}"
             }
           ],
           "properties": {


Mime
View raw message