diff --git a/config/crio-jobName.json b/config/crio-jobName.json new file mode 100644 index 0000000..6b06c17 --- /dev/null +++ b/config/crio-jobName.json @@ -0,0 +1,34 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "crioCPU" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max", + "avg" + ] + } + }, + { + "filter": { + "metricName.keyword": "crioMemory" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max", + "avg" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/config/etcd-jobName.json b/config/etcd-jobName.json new file mode 100644 index 0000000..db21abb --- /dev/null +++ b/config/etcd-jobName.json @@ -0,0 +1,45 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "99thEtcdDiskBackendCommitDurationSeconds" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + }, + { + "filter": { + "metricName.keyword": "99thEtcdDiskWalFsyncDurationSeconds" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + }, + { + "filter": { + "metricName.keyword": "99thEtcdRoundTripTimeSeconds" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/config/kubelet-jobName.json b/config/kubelet-jobName.json new file mode 100644 index 0000000..d59be49 --- /dev/null +++ b/config/kubelet-jobName.json @@ -0,0 +1,32 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "kubeletCPU" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + }, + { + "filter": { + "metricName.keyword": "kubeletMemory" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/config/nodeAggWorkers-jobName.json b/config/nodeAggWorkers-jobName.json new file mode 100644 index 0000000..83a988c --- /dev/null +++ b/config/nodeAggWorkers-jobName.json @@ -0,0 +1,34 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "nodeCPU-AggregatedWorkers" + }, + "buckets": [ + "labels.mode.keyword" + ], + "aggregations": { + "value": [ + "avg", + "max" + ] + } + }, + { + "filter": { + "metricName.keyword": "nodeMemoryAvailable-AggregatedWorkers" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "avg", + "max" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/config/nodeMasters-jobName.json b/config/nodeMasters-jobName.json new file mode 100644 index 0000000..8620725 --- /dev/null +++ b/config/nodeMasters-jobName.json @@ -0,0 +1,32 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "nodeCPU-Masters" + }, + "buckets": [ + "labels.mode.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + }, + { + "filter": { + "metricName.keyword": "nodeMemoryUtilization-Masters" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/config/nodeWorkers-jobName.json b/config/nodeWorkers-jobName.json new file mode 100644 index 0000000..06081ce --- /dev/null +++ b/config/nodeWorkers-jobName.json @@ -0,0 +1,34 @@ +{ + "elasticsearch": { + "ripsaw-kube-burner": [ + { + "filter": { + "metricName.keyword": "nodeCPU-Workers" + }, + "buckets": [ + "labels.mode.keyword" + ], + "aggregations": { + "value": [ + "max", + "avg" + ] + } + }, + { + "filter": { + "metricName.keyword": "nodeMemoryUtilization-Workers" + }, + "buckets": [ + "jobName.keyword" + ], + "aggregations": { + "value": [ + "max", + "avg" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/tolerancy-configs/crio-tolerancy.yaml b/tolerancy-configs/crio-tolerancy.yaml new file mode 100644 index 0000000..89c94ac --- /dev/null +++ b/tolerancy-configs/crio-tolerancy.yaml @@ -0,0 +1,8 @@ +- json_path: ["metricName", "crioCPU","jobName","*", "max(value)"] + tolerancy: 20 + # Maximum percentage of allowed failures + max_failures: 0 +- json_path: ["metricName", "crioMemory","jobName","*", "max(value)"] + tolerancy: 15 + # Maximum percentage of allowed failures + max_failures: 0 diff --git a/tolerancy-configs/etcd-tolerancy.yaml b/tolerancy-configs/etcd-tolerancy.yaml new file mode 100644 index 0000000..643e468 --- /dev/null +++ b/tolerancy-configs/etcd-tolerancy.yaml @@ -0,0 +1,12 @@ +- json_path: ["metricName", "99thEtcdDiskBackendCommitDurationSeconds", "jobName","*","max(value)"] + tolerancy: 40 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "99thEtcdDiskWalFsyncDurationSeconds", "jobName","*","max(value)"] + tolerancy: 40 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "99thEtcdRoundTripTimeSeconds", "jobName","*","max(value)"] + tolerancy: 40 + # Maximum percentage of allowed failures + max_failures: 100 diff --git a/tolerancy-configs/kube-burner-cp-tolerancy.yaml b/tolerancy-configs/kube-burner-cp-tolerancy.yaml new file mode 100644 index 0000000..3bc172c --- /dev/null +++ b/tolerancy-configs/kube-burner-cp-tolerancy.yaml @@ -0,0 +1,16 @@ +- json_path: ["metricName", "containerCPU-Masters", "labels.namespace", "openshift-kube-apiserver", "avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "containerMemory-Masters", "labels.namespace", "openshift-kube-apiserver", "avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "containerCPU-Masters", "labels.namespace", "openshift-etcd", "avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "containerMemory-Masters", "labels.namespace", "openshift-etcd", "avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 \ No newline at end of file diff --git a/tolerancy-configs/kubelet-tolerancy.yaml b/tolerancy-configs/kubelet-tolerancy.yaml new file mode 100644 index 0000000..2e311ab --- /dev/null +++ b/tolerancy-configs/kubelet-tolerancy.yaml @@ -0,0 +1,8 @@ +- json_path: ["metricName", "kubeletCPU", "jobName", "*", "max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "kubeletMemory", "jobName", "*", "max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 \ No newline at end of file diff --git a/tolerancy-configs/master-tolerancy.yaml b/tolerancy-configs/master-tolerancy.yaml new file mode 100644 index 0000000..d081be3 --- /dev/null +++ b/tolerancy-configs/master-tolerancy.yaml @@ -0,0 +1,8 @@ +- json_path: ["metricName", "nodeCPU-Masters", "labels.mode", "*", "max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "nodeMemoryUtilization-Masters", "jobName", "*", "max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 \ No newline at end of file diff --git a/tolerancy-configs/pod-latency-tolerancy-rules.yaml b/tolerancy-configs/pod-latency-tolerancy-rules.yaml new file mode 100644 index 0000000..da37e1b --- /dev/null +++ b/tolerancy-configs/pod-latency-tolerancy-rules.yaml @@ -0,0 +1,8 @@ +- json_path: ["metricName", "podLatencyQuantilesMeasurement", "quantileName", "ContainersReady", "avg(P99)"] + tolerancy: -25 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "podLatencyQuantilesMeasurement", "quantileName", "Ready", "avg(P99)"] + tolerancy: -25 + # Maximum percentage of allowed failures + max_failures: 100 diff --git a/tolerancy-configs/worker-agg-tolerancy.yaml b/tolerancy-configs/worker-agg-tolerancy.yaml new file mode 100644 index 0000000..46c505f --- /dev/null +++ b/tolerancy-configs/worker-agg-tolerancy.yaml @@ -0,0 +1,16 @@ +- json_path: ["metricName", "nodeCPU-AggregatedWorkers", "labels.mode", "*", "avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "nodeCPU-AggregatedWorkers", "labels.mode", "*", "max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 100 +- json_path: ["metricName", "nodeMemoryAvailable-AggregatedWorkers","jobName","*","max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 +- json_path: ["metricName", "nodeMemoryAvailable-AggregatedWorkers","jobName","*","avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 \ No newline at end of file diff --git a/tolerancy-configs/worker-tolerancy.yaml b/tolerancy-configs/worker-tolerancy.yaml new file mode 100644 index 0000000..4a76305 --- /dev/null +++ b/tolerancy-configs/worker-tolerancy.yaml @@ -0,0 +1,16 @@ +- json_path: ["metricName", "nodeCPU-Workers","labels.mode","*","max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 +- json_path: ["metricName", "nodeCPU-Workers","labels.mode","*","avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 +- json_path: ["metricName", "nodeMemoryUtilization-Workers","jobName","*","max(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 +- json_path: ["metricName", "nodeMemoryUtilization-Workers","jobName","*","avg(value)"] + tolerancy: -15 + # Maximum percentage of allowed failures + max_failures: 50 \ No newline at end of file