Skip to content

Commit

Permalink
Merge pull request #26 from waynepeking348/dev/add-kcmas-metric
Browse files Browse the repository at this point in the history
add more name names for kcmas
  • Loading branch information
waynepeking348 authored Jul 31, 2023
2 parents 3b82238 + d978280 commit 9bc7309
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 7 additions & 1 deletion pkg/metric/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ 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
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"
)
13 changes: 11 additions & 2 deletions pkg/metric/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 9bc7309

Please sign in to comment.