Closed rphillips closed 7 years ago
result:
{ "metrics":[{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.0", "wait":0, "user":10, "irq":0, "total":280, "stolen":0, "idle":250, "sys":20, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.1", "wait":0, "user":0, "irq":0, "total":290, "stolen":0, "idle":290, "sys":0, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.2", "wait":0, "user":10, "irq":0, "total":290, "stolen":0, "idle":270, "sys":10, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.3", "wait":0, "user":0, "irq":0, "total":290, "stolen":0, "idle":290, "sys":0, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.4", "wait":0, "user":20, "irq":0, "total":290, "stolen":0, "idle":260, "sys":10, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.5", "wait":0, "user":0, "irq":0, "total":290, "stolen":0, "idle":290, "sys":0, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.6", "wait":0, "user":0, "irq":0, "total":290, "stolen":0, "idle":280, "sys":10, "mhz":2500 },{ "soft_irq":0, "vendor":"Intel", "total_sockets":8, "nice":0, "model":"MacBookPro11,4", "total_cores":8, "name":"cpu.7", "wait":0, "user":0, "irq":0, "total":290, "stolen":0, "idle":290, "sys":0, "mhz":2500 }], "timestamp":1490020330000 }
https://github.com/racker/reach/blob/master/cloudkick/webapp/site_media/js/ck/monitoring/commands/fetch_host_info_command.js#L141-L161
+1 Looks much better.
For posterity, this change would have impacted the server instance rendering of CPU host info in Reach.
result: