Skip to content

Commit

Permalink
Merge pull request #99 from sun-yuliang/dev/add-custom-metric-cpu-usa…
Browse files Browse the repository at this point in the history
…ge-ratio

feat(kcmas): add cpu usage ratio for pod and node custom metrics
  • Loading branch information
xu282934741 authored Sep 29, 2024
2 parents d5c09c1 + a0a800e commit ae613a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pkg/metric/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ limitations under the License.
package node

const (
CustomMetricNodeCPULoad1Min = "node_cpu_load_system_1min"
CustomMetricNodeCPUUsageRatio = "node_cpu_usage_ratio"
CustomMetricNodeCPULoad1Min = "node_cpu_load_system_1min"
)

// real-time memory related metric
Expand Down
7 changes: 4 additions & 3 deletions pkg/metric/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ package pod

// real-time cpu related metric
const (
CustomMetricPodCPULoad1Min = "pod_cpu_load_1min"
CustomMetricPodCPUUsage = "pod_cpu_usage"
CustomMetricPodCPUCPI = "pod_cpu_cpi"
CustomMetricPodCPULoad1Min = "pod_cpu_load_1min"
CustomMetricPodCPUUsage = "pod_cpu_usage"
CustomMetricPodCPUUsageRatio = "pod_cpu_usage_ratio"
CustomMetricPodCPUCPI = "pod_cpu_cpi"
)

const (
Expand Down

0 comments on commit ae613a8

Please sign in to comment.