From d9782806f48ba83b89f9bee208098068422594d9 Mon Sep 17 00:00:00 2001 From: "shaowei.wayne" Date: Wed, 26 Jul 2023 13:53:10 +0800 Subject: [PATCH] add more name names for kcmas --- pkg/metric/node/node.go | 8 +++++++- pkg/metric/pod/pod.go | 13 +++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pkg/metric/node/node.go b/pkg/metric/node/node.go index 24eb134..caca859 100644 --- a/pkg/metric/node/node.go +++ b/pkg/metric/node/node.go @@ -20,7 +20,7 @@ limitations under the License. package node const ( - CustomMetricNodeCPULoad1Min = "node_cpu_load_1min" // real-time cpu load + CustomMetricNodeCPULoad1Min = "node_cpu_load_system_1min" ) // real-time memory related metric @@ -28,3 +28,9 @@ const ( CustomMetricNodeMemoryFree = "node_system_memory_free" CustomMetricNodeMemoryAvailable = "node_system_memory_available" ) + +// real-time advisor-related metric +const ( + CustomMetricNodeAdvisorPoolLoad1Min = "node_advisor_pool_load_1min" + CustomMetricNodeAdvisorKnobStatus = "node_advisor_knob_status" +) diff --git a/pkg/metric/pod/pod.go b/pkg/metric/pod/pod.go index e8178b2..80315ee 100644 --- a/pkg/metric/pod/pod.go +++ b/pkg/metric/pod/pod.go @@ -19,7 +19,16 @@ limitations under the License. // api-server provided by katalyst. package pod +// real-time cpu related metric const ( - CustomMetricPodCPULoad1Min = "pod_cpu_load_1min" // cpu load - CustomMetricPodCPUUsage = "pod_cpu_usage" // cpu usage + CustomMetricPodCPULoad1Min = "pod_cpu_load_1min" + CustomMetricPodCPUUsage = "pod_cpu_usage" +) + +const ( + CustomMetricPodMemoryRSS = "pod_memory_rss" +) + +const ( + CustomMetricPodGPUUsage = "pod_gpu_usage" )