diff --git a/helm-guestbook/templates/cluster_analysis.yaml b/helm-guestbook/templates/cluster_analysis.yaml index 010eaa6..5fe3909 100644 --- a/helm-guestbook/templates/cluster_analysis.yaml +++ b/helm-guestbook/templates/cluster_analysis.yaml @@ -8,9 +8,9 @@ spec: metrics: - name: success-rate # successCondition: isNaN(result[0]) || result[0] >= 0.10 - successCondition: result[0] >= 0.90 || isNaN(result[0]) + successCondition: result[0] >= 4 || isNaN(result[0]) provider: prometheus: address: "http://52.149.216.245:9090" query: | - rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook",status=~"[2].*"}[1h]) / rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook"}[1h]) \ No newline at end of file + nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook",status=~"[2].*"}[1h] \ No newline at end of file diff --git a/helm-guestbook/values.yaml b/helm-guestbook/values.yaml index 59f21c0..6acbedb 100644 --- a/helm-guestbook/values.yaml +++ b/helm-guestbook/values.yaml @@ -6,7 +6,7 @@ replicaCount: 3 image: repository: gcr.io/heptio-images/ks-guestbook-demo - tag: 0.2 + tag: 0.1 pullPolicy: IfNotPresent service: