You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by od...@apache.org on 2016/02/29 20:48:48 UTC
ambari git commit: AMBARI-15191. Show swap memory for HAWQ Segment
hosts(mithmatt via odiachenko).
Repository: ambari
Updated Branches:
refs/heads/trunk 4cd5ad4e6 -> aaca7c479
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/aaca7c47
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/aaca7c47
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/aaca7c47
Branch: refs/heads/trunk
Commit: aaca7c47909510453ab5b1034190c9a8ab28e338
Parents: 4cd5ad4
Author: Oleksandr Diachenko <od...@pivotal.io>
Authored: Mon Feb 29 11:48:29 2016 -0800
Committer: Oleksandr Diachenko <od...@pivotal.io>
Committed: Mon Feb 29 11:48:29 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/aaca7c47/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": {