github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/AnalysisRun/actions/testdata/runningAnalysisRun.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: AnalysisRun 3 metadata: 4 name: canary-demo-analysis-template-6c6bb7cf6f-5bpxj 5 namespace: default 6 spec: 7 analysisSpec: 8 metrics: 9 - failureCondition: len(result) == 0 10 interval: 10 11 name: memory-usage 12 provider: 13 prometheus: 14 address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' 15 query: > 16 sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) 17 / 18 sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) 19 successCondition: len(result) > 0 20 status: 21 metricResults: 22 - count: 2 23 measurements: 24 - finishedAt: '2019-10-28T18:22:05Z' 25 startedAt: '2019-10-28T18:22:05Z' 26 phase: Successful 27 value: '[0.9721293199554069]' 28 - finishedAt: '2019-10-28T18:22:15Z' 29 startedAt: '2019-10-28T18:22:15Z' 30 phase: Successful 31 value: '[0.9721293199554069]' 32 name: memory-usage 33 phase: Running 34 successful: 2 35 phase: Running