From 5aa0a81328be8322e154b59a1395a003a7632b44 Mon Sep 17 00:00:00 2001 From: brandon Date: Tue, 6 Apr 2021 23:20:48 -0400 Subject: [PATCH] update cluster analysis --- helm-guestbook/templates/cluster_analysis.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-guestbook/templates/cluster_analysis.yaml b/helm-guestbook/templates/cluster_analysis.yaml index ba06604..2bb33b7 100644 --- a/helm-guestbook/templates/cluster_analysis.yaml +++ b/helm-guestbook/templates/cluster_analysis.yaml @@ -7,9 +7,9 @@ spec: - name: service-name metrics: - name: success-rate - successCondition: result[0] == NaN || result[0] >= 0.10 + successCondition: isNaN(result[0]) || result[0] >= 0.10 provider: prometheus: - address: "http://a0179abbebc504fe1a02cc2868d10d20-1436141555.us-east-2.elb.amazonaws.com:9090" + address: "http://52.149.216.245:9090" query: | - rate(nginx_ingress_controller_requests{ingress="guestbook-helm-guestbook", controller_class="nginx",exported_namespace="guestbook-helm-guestbook",status!~"[4-5].*"}[1h]) / rate(nginx_ingress_controller_requests{ingress="guestbook-helm-guestbook", controller_class="nginx",exported_namespace="guestbook-helm-guestbook"}[1h]) \ No newline at end of file + rate(nginx_ingress_controller_requests{ingress="{{ {{ template "helm-guestbook.fullname" . }} }}", controller_class="nginx",exported_namespace="{{ {{ template "helm-guestbook.fullname" . }} }}",status!~"[4-5].*"}[1h]) / rate(nginx_ingress_controller_requests{ingress="{{ {{ template "helm-guestbook.fullname" . }} }}", controller_class="nginx",exported_namespace="{{ {{ template "helm-guestbook.fullname" . }} }}"}[1h]) \ No newline at end of file