Просмотр исходного кода

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 лет назад
Родитель
Сommit
7b76f23fb7
2 измененных файлов с 20 добавлено и 14 удалено
  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
 
+ 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-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
    1200 secs.
    This information doesn't change between reboots and is only collected
@@ -235,10 +248,6 @@ collection_group {
     name = "cpu_speed"
     title = "CPU Speed"
   }
-  metric {
-    name = "mem_total"
-    title = "Memory Total"
-  }
   /* Should this be here? Swap can be added/removed between reboots. */
   metric {
     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 {
   collect_every = 40
@@ -450,6 +449,11 @@ collection_group {
     value_threshold = 1.0
     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")