github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/workflowstep/check-metrics.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: canary-demo 6 annotations: 7 app.oam.dev/publishVersion: v2 8 spec: 9 components: 10 - name: canary-demo 11 type: webservice 12 properties: 13 image: wangyikewyk/canarydemo:v2 14 ports: 15 - port: 8090 16 traits: 17 - type: scaler 18 properties: 19 replicas: 5 20 - type: gateway 21 properties: 22 domain: canary-demo.com 23 http: 24 "/version": 8090 25 workflow: 26 steps: 27 - name: 200-status-percent-2-phase 28 type: check-metrics 29 timeout: 3m 30 properties: 31 query: sum(irate(nginx_ingress_controller_requests{host="canary-demo.com",status="200"}[5m]))/sum(irate(nginx_ingress_controller_requests{host="canary-demo.com"}[2m])) 32 promAddress: "http://prometheus-server.o11y-system.svc:9090" 33 condition: ">=0.95" 34 duration: 2m 35 ```