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 #77 from keptn/patch/self-healing-prometheus
Browse files Browse the repository at this point in the history
custom metrics for prometheus self healing
  • Loading branch information
bacherfl authored Jan 20, 2020
2 parents 3edddf5 + 1ac5097 commit b331166
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onboarding-carts/sli-config-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
spec_version: '1.0'
indicators:
cpu_usage: avg(rate(container_cpu_usage_seconds_total{namespace="$PROJECT-$STAGE",pod_name=~"$SERVICE-primary-.*"}[5m]))
response_time_p95: histogram_quantile(0.95, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-canary"}[$DURATION_SECONDS])))
response_time_p50: histogram_quantile(0.5, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE"}[$DURATION_SECONDS])))
response_time_p90: histogram_quantile(0.9, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE"}[$DURATION_SECONDS])))
response_time_p95: histogram_quantile(0.95, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE"}[$DURATION_SECONDS])))

0 comments on commit b331166

Please sign in to comment.