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:
Warren Seymour
2018-11-03 11:03:07 +00:00
committed by Henning Jacobs
parent 1fdf205dbf
commit 384ea8f06d
2 changed files with 3 additions and 2 deletions

View File

@@ -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),