mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Add load_five and load_fifteen to LoadavgCollector
This commit is contained in:
		@@ -29,6 +29,10 @@ func (m *LoadavgCollector) Read(interval time.Duration){
 | 
			
		||||
	ls := strings.Split(string(buffer), ` `)
 | 
			
		||||
	loadOne, _ := strconv.ParseFloat(ls[0], 64)
 | 
			
		||||
	m.node["load_one"] = float64(loadOne)
 | 
			
		||||
	loadFive, _ := strconv.ParseFloat(ls[1], 64)
 | 
			
		||||
	m.node["load_five"] = float64(loadFive)
 | 
			
		||||
	loadFifteen, _ := strconv.ParseFloat(ls[2], 64)
 | 
			
		||||
	m.node["load_fifteen"] = float64(loadFifteen)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *LoadavgCollector) Close() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user