Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #87 from keptn/patch/1495/slo-files
Browse files Browse the repository at this point in the history
#1495 Add default values to SLO config
  • Loading branch information
johannes-b authored Mar 13, 2020
2 parents d8b59e0 + 0d36fc4 commit 6cc9c16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
8 changes: 5 additions & 3 deletions onboarding-carts/slo-quality-gates.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
spec_version: '0.1.1'
spec_version: "0.1.1"
comparison:
compare_with: "single_result"
include_result_with_score: "pass"
aggregate_function: avg
aggregate_function: "avg"
number_of_comparison_results: 1
objectives:
- sli: response_time_p95
- sli: "response_time_p95"
key_sli: false
pass: # pass if (relative change <= 10% AND absolute value is < 600ms)
- criteria:
- "<=+10%" # relative values require a prefixed sign (plus or minus)
Expand Down
16 changes: 9 additions & 7 deletions onboarding-carts/slo-self-healing.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
---
spec_version: '0.1.1'
spec_version: "0.1.1"
comparison:
compare_with: "single_result"
include_result_with_score: "pass"
aggregate_function: avg
aggregate_function: "avg"
number_of_comparison_results: 1
objectives:
- sli: response_time_p90
pass: # pass if (relative change <= 10% AND absolute value is < 500)
- sli: "response_time_p90"
key_sli: false
pass: # pass if (relative change <= 10% AND absolute value is < 1000)
- criteria:
- "<=+10%" # relative values require a prefixed sign (plus or minus)
- "<=+10%" # relative values require a prefixed sign (plus or minus)
- "<1000" # absolute values only require a logical operator
warning: # if the response time is below 800ms, the result should be a warning
warning: # if the response time is below 1200ms, the result should be a warning
- criteria:
- "<=1200"
total_score:
pass: "90%"
warning: 40%
warning: "40%"

0 comments on commit 6cc9c16

Please sign in to comment.