Skip to content

Commit

Permalink
replaced queries with some labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalShukla-web committed Sep 20, 2024
1 parent 74f8a46 commit e6ab46a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions prombench/manifests/prombench/benchmark/6_loadgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ data:
interval: 10s
type: instant
queries:
- expr: sum(node_cpu_seconds_total)/sum(container_memory_rss)
- expr: sum by (container, pod) (rate(container_cpu_usage_seconds_total[5m])) / sum by (container, pod) (container_spec_cpu_quota)
- expr: rate(node_cpu_seconds_total[5m]) * 5
- expr: sum(go_gc_heap_goal_bytes)/sum(loadgen_query_duration_seconds_created)
- expr: sum by(instance) (rate(node_cpu_seconds_total[5m])) / avg by(instance) (node_load1)
- expr: sum by(instance) (rate(container_cpu_cfs_throttled_seconds_total[5m])) + sum by (instance) (rate(container_cpu_usage_seconds_total[5m]))
- name: logic_operator
interval: 10s
type: instant
queries:
- expr: node_cpu_seconds_total{mode="nice"} and node_cpu_seconds_total{namespace="default"}
- expr: node_cpu_seconds_total{mode="nice"} and node_cpu_seconds_total{cpu="10"}
- expr: container_ulimits_soft{namespace="kube-system"} or container_ulimits_soft{cloud_google_com_gke_nodepool="main-node"}
- expr: node_cpu_seconds_total{mode!="iowait"} and node_cpu_seconds_total{mode!="irq"}
- expr: node_cpu_seconds_total{mode="user"} and on(cpu) (node_cpu_seconds_total{cpu!~"0|1"})
Expand All @@ -68,8 +69,9 @@ data:
type: instant
queries:
- expr: topk(3, sum(rate(node_cpu_seconds_total{mode="user"}[5m])) by (instance))
- expr: topk(5,sum(container_ulimits_soft{namespace="kube-system"}[5m]))
- expr: topk(5, sum(container_cpu_usage_seconds_total) by (instance))
- expr: topk(3, sum(container_memory_usage_bytes) by (pod))
- expr: topk(4, sum(rate(node_cpu_seconds_total[5m])) by (mode))
---
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit e6ab46a

Please sign in to comment.