Added Prometheus monitoring CPU and memory selector. (#1387)

* Added Prometheus monitoring CPU and memory selector.

* Minor text fixes

* Fixed memory units, improvements to get return

* Updated logic to add storageClassName to get response

* Minor fixes, removed warnings

* Removed blank entry for empty storageclassname

Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
jinapurapu
2022-01-14 11:15:09 -08:00
committed by GitHub
parent 257f02c554
commit e374772fc6
8 changed files with 275 additions and 136 deletions

View File

@@ -51,6 +51,12 @@ type TenantMonitoringInfo struct {
// labels
Labels []*Label `json:"labels"`
// monitoring CPU request
MonitoringCPURequest string `json:"monitoringCPURequest,omitempty"`
// monitoring mem request
MonitoringMemRequest string `json:"monitoringMemRequest,omitempty"`
// node selector
NodeSelector []*NodeSelector `json:"nodeSelector"`