Add vCPU core count and memory to report graphs
Summary
As a customer, I want to see graphed how much vCPU and memory I've used so that I can better understand my product usage.
UI mockup: https://redhat.invisionapp.com/share/UFI078IZVAW#/screens/296433286
Screenshot as of 2018-11-14:
Acceptance Criteria
-
Verify the daily usage graph for RHEL can change display mode to: -
instance hours -
core hours -
GB memory hours
-
-
Verify the default display mode for RHEL is instance hours -
Verify the daily usage graph for OCP can change display mode to: -
instance hours -
core hours -
GB memory hours
-
-
Verify the default display mode for OCP is core hours -
Docs updates in the "Changing the instance characteristics" section https://docs.google.com/document/d/1O2vBNGkP8zRLRzdrbWb9C8RpkBDFGpmbImuipmo7HcA/edit#heading=h.2ohgiro92s9x
Assumptions and Questions
- "core hours" is the number of vCPU used by a given instance times the number of hours it was running.
- 1-vcpu instance running 2 hours + 2-vcpu instance running 2 hours =
1*2 + 2*2 = 6
"core hours"
- 1-vcpu instance running 2 hours + 2-vcpu instance running 2 hours =
- "GB memory hours" is the amount of memory used by a given instance times the number of hours it was running.
- 1-GB instance running 2 hours + 2-GB instance running 2 hours =
1*2 + 2*2 = 6
"GB memory hours"
- 1-GB instance running 2 hours + 2-GB instance running 2 hours =
- At the API, this will expand the response from
/api/v1/report/instances/
. - The mockup currently shows that the user can choose different display modes for the graphs, meaning one may show "core hours" and the other "GB memory hours". Is this really what we want? Consider how that will affect the account summary list below in a future story...
- Yes, this is okay because we expect users to "set it and forget it" with respect to their two display modes.
- Does the UI need to remember what the units/axes are for the graphs?
- No, we can set reasonable defaults for the UI and allow the user to change as needed.
- Default selection for RHEL: instance hours
- Default selection for OCP: "core hours" (vcpu)
Edited by Calvin Spealman