Skip to content

Commit

Permalink
Add parameters for DNS test thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
dlapcevic committed Jul 27, 2022
1 parent 6c36f0e commit d493d4a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions clusterloader2/testing/load/modules/measurements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
{{$ENABLE_DNSTESTS := DefaultParam .CL2_ENABLE_DNSTESTS false}}
# Guard the new DNS tests. Remove it once it's confirmed that it works on a subset of tests.
{{$USE_ADVANCED_DNSTEST := DefaultParam .CL2_USE_ADVANCED_DNSTEST false}}
# DNS test threshold parameters.
{{$DNS_ERROR_COUNT_THRESHOLD := DefaultParam .CL2_DNS_ERROR_COUNT_THRESHOLD 1}}
{{$DNS_LOOKUP_LATENCY_50_THRESHOLD := DefaultParam .CL2_DNS_LOOKUP_LATENCY_50_THRESHOLD 0.02}}
{{$DNS_LOOKUP_LATENCY_99_THRESHOLD := DefaultParam .CL2_DNS_LOOKUP_LATENCY_99_THRESHOLD 0.1}}
{{$ENABLE_NODE_LOCAL_DNS_LATENCY := DefaultParam .CL2_ENABLE_NODE_LOCAL_DNS_LATENCY false}}
{{$ENABLE_RESTART_COUNT_CHECK := DefaultParam .ENABLE_RESTART_COUNT_CHECK true}}
{{$ENABLE_SYSTEM_POD_METRICS:= DefaultParam .ENABLE_SYSTEM_POD_METRICS true}}
Expand Down Expand Up @@ -212,11 +216,11 @@ steps:
query: sum(increase(dns_timeouts_total[%v]))
- name: DNS Error Count
query: sum(increase(dns_errors_total[%v]))
threshold: 1
threshold: {{$DNS_ERROR_COUNT_THRESHOLD}}
- name: DNS Lookup Latency - Perc50
query: histogram_quantile(0.5, sum(rate(dns_lookup_latency_bucket[%v])) by (le))
threshold: 0.01
threshold: {{$DNS_LOOKUP_LATENCY_50_THRESHOLD}}
- name: DNS Lookup Latency - Perc99
query: histogram_quantile(0.99, sum(rate(dns_lookup_latency_bucket[%v])) by (le))
threshold: 0.1
threshold: {{$DNS_LOOKUP_LATENCY_99_THRESHOLD}}
{{end}}

0 comments on commit d493d4a

Please sign in to comment.