Add a dropdown box for metrics on the environment tab
Problem to solve
As per discussions in #32266 (closed) (and in this comment specifically), we decided to break down the work required to create the Infrastructure Dashboard MVC. This issue is specifically to add a dropdown to the existing deployments pod visualization, so users can switch the visualization displayed:
For the first iteration, the options in this dropdown will include: one option to show the current deployments view, and an option for a single, additional metric. As a first pass, we could focus on adding the dropdown item (and corresponding visualization) for CPU (we can, later on, add additional metrics as mention in this issue):
|Deployments view||"Metrics" view|
Note: Colors to be used in this visualization are still being discussed as part of #35587. Hopefully this discussion can be finalized shortly. When it is, the mock-ups on this issue will be updated.
This issue is step two of a larger workflow:
- User views the pod visualization on Operations > Environments
- User can switch between visualizations using the dropdown, viewing either the deployments or metrics for the pods
- User clicks on a specific pod within the visualization
- Clicking on the pod will send user to a separate "pod detail view." From this view, users can switch either the pod log or the metrics for the pod, using the button group at the top of the page.
Note: #35242 is a pre-requisite
Thresholds related discussions should be taken place here