ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject ambari git commit: AMBARI-14632: Add widget for HAWQ showing memory metrics (bhuvnesh2703 via jaoki)
Date Tue, 12 Jan 2016 21:32:23 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 5daf15397 -> 2546c4c51


AMBARI-14632: Add widget for HAWQ showing memory metrics (bhuvnesh2703 via jaoki)


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

Branch: refs/heads/branch-2.2
Commit: 2546c4c51ce2c9e1df106b093d7bf6e2294e5bd2
Parents: 5daf153
Author: Jun Aoki <jaoki@apache.org>
Authored: Tue Jan 12 13:32:03 2016 -0800
Committer: Jun Aoki <jaoki@apache.org>
Committed: Tue Jan 12 13:32:03 2016 -0800

----------------------------------------------------------------------
 .../common-services/HAWQ/2.0.0/metrics.json     | 42 ++++++++++++++++++++
 .../common-services/HAWQ/2.0.0/widgets.json     | 40 ++++++++++++++++++-
 2 files changed, 81 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2546c4c5/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json
index 5da1183..37d406a 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metrics.json
@@ -58,6 +58,48 @@
               "pointInTime":true,
               "temporal":true,
               "amsHostMetric":true
+            },
+            "metrics/memory/mem_buffers": {
+              "metric": "mem_buffers",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/mem_cached": {
+              "metric": "mem_cached",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/mem_free": {
+              "metric": "mem_free",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/mem_shared": {
+              "metric": "mem_shared",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/mem_total": {
+              "metric": "mem_total",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/swap_total": {
+              "metric": "swap_total",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
+            },
+            "metrics/memory/swap_free": {
+              "metric": "swap_free",
+              "pointInTime": true,
+              "temporal": true,
+              "amsHostMetric": true
             }
           }
         }

http://git-wip-us.apache.org/repos/asf/ambari/blob/2546c4c5/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 52dd0cc..48ae989 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
@@ -126,8 +126,46 @@
             "graph_type": "LINE",
             "time_range": "1"
           }
+        },
+        {
+          "widget_name": "HAWQ Segment Hosts Memory",
+          "description": "Percentage of Memory resources being consumed on HAWQSEGMENT hosts.",
+          "default_section_name": "HAWQ_SUMMARY",
+          "widget_type": "GRAPH",
+          "is_visible": true,
+          "metrics": [
+            {
+              "name": "mem_total",
+              "metric_path": "metrics/memory/mem_total",
+              "service_name": "HAWQ",
+              "component_name": "HAWQSEGMENT"
+            },
+            {
+              "name": "mem_free",
+              "metric_path": "metrics/memory/mem_free",
+              "service_name": "HAWQ",
+              "component_name": "HAWQSEGMENT"
+            },
+            {
+              "name": "mem_cached",
+              "metric_path": "metrics/memory/mem_cached",
+              "service_name": "HAWQ",
+              "component_name": "HAWQSEGMENT"
+            }
+          ],
+          "values": [
+            {
+              "name": "Memory utilization",
+              "value": "${((mem_total - mem_free - mem_cached)/mem_total) * 100}"
+            }
+          ],
+          "properties": {
+            "graph_type": "LINE",
+            "time_range": "1",
+            "display_unit": "%"
+          }
         }
       ]
     }
   ]
-}
\ No newline at end of file
+}


Mime
View raw message