Browse Source

AMBARI-1164. Fix disk info ganglia metric

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1441251 13f79535-47bb-0310-9956-ffa450edef68
John Speidel 12 years ago
parent
commit
7b76f23fb7
2 changed files with 20 additions and 14 deletions
  1. 2 0
      CHANGES.txt
  2. 18 14
      ambari-agent/src/main/puppet/modules/hdp-ganglia/files/gmondLib.sh

+ 2 - 0
CHANGES.txt

@@ -221,6 +221,8 @@ Trunk (unreleased changes):
 
 
  BUG FIXES
  BUG FIXES
 
 
+ AMBARI-1164. Disk info ganglia metrics is broken for some OS. (Dmytro Shkvyra via jspeidel)
+
  AMBARI-1325. Left border is missing from the main nav. (srimanth)
  AMBARI-1325. Left border is missing from the main nav. (srimanth)
  
  
  AMBARI-1324. Job Browser default sort order should be Run Date DESC. (srimanth)
  AMBARI-1324. Job Browser default sort order should be Run Date DESC. (srimanth)

+ 18 - 14
ambari-agent/src/main/puppet/modules/hdp-ganglia/files/gmondLib.sh

@@ -220,6 +220,19 @@ collection_group {
   }
   }
 }
 }
 
 
+/* This collection group will send general info about this host total memory every
+   180 secs.
+   This information doesn't change between reboots and is only collected
+   once. This information needed for heatmap showing */
+ collection_group {
+   collect_once = yes
+   time_threshold = 180
+   metric {
+    name = "mem_total"
+    title = "Memory Total"
+   }
+ }
+
 /* This collection group will send general info about this host every
 /* This collection group will send general info about this host every
    1200 secs.
    1200 secs.
    This information doesn't change between reboots and is only collected
    This information doesn't change between reboots and is only collected
@@ -235,10 +248,6 @@ collection_group {
     name = "cpu_speed"
     name = "cpu_speed"
     title = "CPU Speed"
     title = "CPU Speed"
   }
   }
-  metric {
-    name = "mem_total"
-    title = "Memory Total"
-  }
   /* Should this be here? Swap can be added/removed between reboots. */
   /* Should this be here? Swap can be added/removed between reboots. */
   metric {
   metric {
     name = "swap_total"
     name = "swap_total"
@@ -426,16 +435,6 @@ collection_group {
   }
   }
 }
 }
 
 
-/* Different than 2.5.x default since the old config made no sense */
-collection_group {
-  collect_every = 1800
-  time_threshold = 3600
-  metric {
-    name = "disk_total"
-    value_threshold = 1.0
-    title = "Total Disk Space"
-  }
-}
 
 
 collection_group {
 collection_group {
   collect_every = 40
   collect_every = 40
@@ -450,6 +449,11 @@ collection_group {
     value_threshold = 1.0
     value_threshold = 1.0
     title = "Maximum Disk Space Used"
     title = "Maximum Disk Space Used"
   }
   }
+  metric {
+    name = "disk_total"
+    value_threshold = 1.0
+    title = "Total Disk Space"
+  }
 }
 }
 
 
 include ("${GANGLIA_CONF_DIR}/${gmondClusterName}/conf.d/*.conf")
 include ("${GANGLIA_CONF_DIR}/${gmondClusterName}/conf.d/*.conf")