diff --git a/prombench/manifests/prombench/benchmark/6_loadgen.yaml b/prombench/manifests/prombench/benchmark/6_loadgen.yaml index 0c3b4d6ff..bacde44c2 100644 --- a/prombench/manifests/prombench/benchmark/6_loadgen.yaml +++ b/prombench/manifests/prombench/benchmark/6_loadgen.yaml @@ -48,6 +48,28 @@ data: - expr: histogram_quantile(0.99, sum by(path, le) (rate(codelab_api_request_duration_seconds_bucket{method="POST"}[5m]))) - expr: histogram_quantile(0.99, sum by(path, method, le) (rate(codelab_api_request_duration_seconds_bucket{method="POST"}[5m]))) - expr: histogram_quantile(0.99, sum by(instance, le) (rate(codelab_api_request_duration_seconds_bucket{method="POST"}[5m]))) + - name: arthematic_operation + interval: 10s + type: instant + queries: + - expr: sum(node_cpu_seconds_total)/sum(container_memory_rss) + - expr: rate(node_cpu_seconds_total[5m]) * 5 + - expr: sum(go_gc_heap_goal_bytes)/sum(loadgen_query_duration_seconds_created) + - name: logic_operator + interval: 10s + type: instant + queries: + - expr: node_cpu_seconds_total{mode="nice"} and node_cpu_seconds_total{namespace="default"} + - 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"}) + - name: topk + interval: 10s + 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(3, sum(container_memory_usage_bytes) by (pod)) --- apiVersion: apps/v1 kind: Deployment @@ -69,7 +91,7 @@ spec: containers: - name: prom-load-generator image: docker.io/prominfra/scaler:master - imagePullPolicy: Always + imagePullPolicy: IfNotPresent args: - "scale" - "-f" @@ -109,7 +131,7 @@ spec: containers: - name: prom-load-generator image: docker.io/prominfra/load-generator:master - imagePullPolicy: Always + imagePullPolicy: IfNotPresent args: - "prombench-{{ .PR_NUMBER }}" - "{{ .PR_NUMBER }}"