Replace Heapster with Metrics API (#177)
* Replace Heapster with Metrics API call * Add `n` factor Metrics API likes to report CPU usage in `n`-suffixed units, so make sure its represented correctly.
This commit is contained in:
committed by
Henning Jacobs
parent
1fdf205dbf
commit
384ea8f06d
@@ -1,6 +1,7 @@
|
||||
const PIXI = require('pixi.js')
|
||||
|
||||
const FACTORS = {
|
||||
'n': 1 / 1000 / 1000 / 1000,
|
||||
'm': 1 / 1000,
|
||||
'K': 1000,
|
||||
'M': Math.pow(1000, 2),
|
||||
|
||||
Reference in New Issue
Block a user