From ee8cf49bab415b4a847f20523f5ba53ab13ab224 Mon Sep 17 00:00:00 2001 From: Christian Kreuzberger Date: Tue, 22 Mar 2022 13:53:51 +0100 Subject: [PATCH] feat: Use latest prometheus-service SLI placeholders (#226) Signed-off-by: Christian Kreuzberger --- onboarding-carts/sli-config-prometheus-selfhealing.yaml | 6 ------ ...config-prometheus-bg.yaml => sli-config-prometheus.yaml} | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 onboarding-carts/sli-config-prometheus-selfhealing.yaml rename onboarding-carts/{sli-config-prometheus-bg.yaml => sli-config-prometheus.yaml} (65%) diff --git a/onboarding-carts/sli-config-prometheus-selfhealing.yaml b/onboarding-carts/sli-config-prometheus-selfhealing.yaml deleted file mode 100644 index 12aadb8..0000000 --- a/onboarding-carts/sli-config-prometheus-selfhealing.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -spec_version: '1.0' -indicators: - response_time_p50: histogram_quantile(0.5, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-primary"}[3m]))) - response_time_p90: histogram_quantile(0.9, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-primary"}[3m]))) - response_time_p95: histogram_quantile(0.95, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-primary"}[3m]))) diff --git a/onboarding-carts/sli-config-prometheus-bg.yaml b/onboarding-carts/sli-config-prometheus.yaml similarity index 65% rename from onboarding-carts/sli-config-prometheus-bg.yaml rename to onboarding-carts/sli-config-prometheus.yaml index af25f11..e4cb42f 100644 --- a/onboarding-carts/sli-config-prometheus-bg.yaml +++ b/onboarding-carts/sli-config-prometheus.yaml @@ -1,6 +1,6 @@ --- spec_version: '1.0' indicators: - response_time_p50: histogram_quantile(0.5, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-canary"}[$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-canary"}[$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-canary"}[$DURATION_SECONDS]))) \ No newline at end of file + response_time_p50: histogram_quantile(0.5, sum by(le) (rate(http_response_time_milliseconds_bucket{handler="ItemsController.addToCart",job="$SERVICE-$PROJECT-$STAGE-$DEPLOYMENT"}[$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-$DEPLOYMENT"}[$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-$DEPLOYMENT"}[$DURATION_SECONDS]))) \ No newline at end of file