mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Add load_five and load_fifteen to LoadavgCollector
This commit is contained in:
parent
a08af3b050
commit
0110547b68
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user