mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
Introduce hierarchical metriclists and thresholds
This commit is contained in:
parent
d2b97c9e2f
commit
efde2cbb8e
@ -27,17 +27,18 @@ type MetricValue struct {
|
||||
}
|
||||
|
||||
type SubCluster struct {
|
||||
Name string `json:"name"`
|
||||
Nodes string `json:"nodes"`
|
||||
NumberOfNodes int `json:"numberOfNodes"`
|
||||
ProcessorType string `json:"processorType"`
|
||||
SocketsPerNode int `json:"socketsPerNode"`
|
||||
CoresPerSocket int `json:"coresPerSocket"`
|
||||
ThreadsPerCore int `json:"threadsPerCore"`
|
||||
FlopRateScalar *MetricValue `json:"flopRateScalar"`
|
||||
FlopRateSimd *MetricValue `json:"flopRateSimd"`
|
||||
MemoryBandwidth *MetricValue `json:"memoryBandwidth"`
|
||||
Topology *Topology `json:"topology"`
|
||||
Name string `json:"name"`
|
||||
Nodes string `json:"nodes"`
|
||||
NumberOfNodes int `json:"numberOfNodes"`
|
||||
ProcessorType string `json:"processorType"`
|
||||
SocketsPerNode int `json:"socketsPerNode"`
|
||||
CoresPerSocket int `json:"coresPerSocket"`
|
||||
ThreadsPerCore int `json:"threadsPerCore"`
|
||||
FlopRateScalar *MetricValue `json:"flopRateScalar"`
|
||||
FlopRateSimd *MetricValue `json:"flopRateSimd"`
|
||||
MemoryBandwidth *MetricValue `json:"memoryBandwidth"`
|
||||
Topology *Topology `json:"topology"`
|
||||
MetricConfig []*MetricConfig `json:"metricConfig"`
|
||||
}
|
||||
|
||||
type SubClusterConfig struct {
|
||||
@ -54,6 +55,10 @@ type MetricConfig struct {
|
||||
Scope MetricScope `json:"scope"`
|
||||
Aggregation *string `json:"aggregation"`
|
||||
Timestep int `json:"timestep"`
|
||||
Peak *float64 `json:"peak"`
|
||||
Normal *float64 `json:"normal"`
|
||||
Caution *float64 `json:"caution"`
|
||||
Alert *float64 `json:"alert"`
|
||||
SubClusters []*SubClusterConfig `json:"subClusters"`
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,22 @@
|
||||
"avg"
|
||||
]
|
||||
},
|
||||
"peak": {
|
||||
"description": "Metric peak threshold (Upper metric limit)",
|
||||
"type": "number"
|
||||
},
|
||||
"normal": {
|
||||
"description": "Metric normal threshold",
|
||||
"type": "number"
|
||||
},
|
||||
"caution": {
|
||||
"description": "Metric caution threshold (Suspicious but does not require immediate action)",
|
||||
"type": "number"
|
||||
},
|
||||
"alert": {
|
||||
"description": "Metric alert threshold (Requires immediate action)",
|
||||
"type": "number"
|
||||
},
|
||||
"subClusters": {
|
||||
"description": "Array of cluster hardware partition metric thresholds",
|
||||
"type": "array",
|
||||
@ -76,7 +92,10 @@
|
||||
"unit",
|
||||
"scope",
|
||||
"timestep",
|
||||
"subClusters"
|
||||
"aggregation",
|
||||
"peak",
|
||||
"caution",
|
||||
"alert"
|
||||
]
|
||||
},
|
||||
"minItems": 1
|
||||
|
Loading…
Reference in New Issue
Block a user