generated from keptn-sandbox/keptn-service-template-go
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for setting timeout through env variable
- bump image tag to 0.2.0 - add sample sli and slo - use podtatohead for test events
- Loading branch information
1 parent
f73609e
commit 79649bd
Showing
8 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
spec_version: '1.0' | ||
indicators: | ||
# http_response_time_seconds_main_page_sum: sum(rate(http_server_request_duration_seconds_sum{method="GET",route="/",status_code="200",job="$SERVICE-$PROJECT-$STAGE"}[$DURATION_SECONDS])/rate(http_server_request_duration_seconds_count{method="GET",route="/",status_code="200",job="$SERVICE-$PROJECT-$STAGE"}[$DURATION_SECONDS])) | ||
# failing_request: promhttp_metric_handler_requests_total{code!="200",job="$SERVICE-$PROJECT-$STAGE"} | ||
# http_requests_total_sucess: http_requests_total{status="success"} | ||
# go_routines: go_goroutines{job="$SERVICE-$PROJECT-$STAGE"} | ||
# request_throughput: sum(rate(http_requests_total{status="success"}[2m])) | ||
system_load: avg:system.load.1{*}.rollup(avg, $DURATION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
spec_version: '0.1.0' | ||
comparison: | ||
compare_with: "single_result" | ||
include_result_with_score: "pass" | ||
aggregate_function: avg | ||
objectives: | ||
- sli: system_load | ||
displayName: "System Load" | ||
pass: | ||
- criteria: | ||
- "<0.6" | ||
warning: | ||
- criteria: | ||
- ">=0.6" | ||
- "<0.7" | ||
fail: | ||
- criteria: | ||
- ">0.7" | ||
|
||
total_score: | ||
pass: "100%" | ||
warning: "50%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters