Skip to content

Commit

Permalink
Replace container_cpu_system_seconds_total by container_cpu_usage_sec…
Browse files Browse the repository at this point in the history
…onds_total (kube-burner#367)

* Fix container name typo

Signed-off-by: Raul Sevilla <[email protected]>

* Replace container_cpu_system_seconds_total by container_cpu_usage_seconds_total

Signed-off-by: Raul Sevilla <[email protected]>

---------

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Jun 29, 2023
1 parent 1653c52 commit 65c80e2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cmd/kube-burner/ocp-config/metrics-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
metricName: memory-kube-controller-manager
aggregations: [avg, max]

- query: topk(3, sum(irate(container_cpu_system_seconds_total{namespace="openshift-kube-apiserver"}[2m])) by (pod))
- query: topk(3, sum(irate(container_cpu_usage_seconds_total{namespace="openshift-kube-apiserver"}[2m])) by (pod))
metricName: cpu-kube-apiserver
aggregations: [avg]

- query: topk(3, sum(container_memory_rss{namespace="openshift-kube-apiserver"}) by (pod))
metricName: memory-kube-apiserver
aggregations: [avg, max]

- query: topk(3, sum(irate(container_cpu_system_seconds_total{namespace="openshift-etcd"}[2m])) by (pod))
- query: topk(3, sum(irate(container_cpu_usage_seconds_total{namespace="openshift-etcd"}[2m])) by (pod))
metricName: cpu-etcd
aggregations: [avg]

Expand All @@ -63,55 +63,55 @@

# OVNKubernetes

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="sbdb"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="sbdb"}[2m])
metricName: cpu-ovnkube-master-sbdb
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="sbdb"}
metricName: memory-ovnkube-master-sbdb
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="nbdb"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="nbdb"}[2m])
metricName: cpu-ovnkube-master-nbdb
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="nbdb"}
metricName: memory-ovnkube-master-nbdb
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="northd"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="northd"}[2m])
metricName: cpu-ovnkube-master-northd
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="northd"}
metricName: memory-ovnkube-master-northd
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovnkube-master"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovnkube-master"}[2m])
metricName: cpu-ovnkube-master-ovnkube-master
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovnkube-master"}
metricName: memory-ovnkube-master-ovnkube-master
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovn-dbchecker"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovn-dbchecker"}[2m])
metricName: cpu-ovnkube-master-ovn-dbchecker
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-master.+",container="ovn-dbchecker"}
metricName: memory-ovnkube-master-ovn-dbchecker
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-node.+",container="ovnkube-node"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-node.+",container="ovnkube-node"}[2m])
metricName: cpu-ovnkube-node-ovnkube-node
aggregations: [avg]

- query: container_memory_rss{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-node.+",container="ovnkube-node"}
metricName: memory-ovnkube-node-ovnkube-node
aggregations: [avg, max]

- query: irate(container_cpu_system_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-node.+",container="ovn-controller"}[2m])
- query: irate(container_cpu_usage_seconds_total{namespace="openshift-ovn-kubernetes", pod=~"ovnkube-node.+",container="ovn-controller"}[2m])
metricName: cpu-ovnkube-node-ovn-controller
aggregations: [avg]

Expand Down

0 comments on commit 65c80e2

Please sign in to comment.