Browse Source

update cluster analysis

pull/82/head
brandon 4 years ago
parent
commit
5aa0a81328
  1. 6
      helm-guestbook/templates/cluster_analysis.yaml

6
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])
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])
Loading…
Cancel
Save