github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/AnalysisRun/testdata/pendingAnalysisRun.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: AnalysisRun
     3  metadata:
     4    name: analysis-template
     5  spec:
     6    metrics:
     7    - name: memory-usage
     8      interval: 10
     9      successCondition: result > 95
    10      failureCondition: result < 92
    11      provider:
    12        prometheus:
    13          address: http://prometheus-operator-prometheus.prometheus-operator:9090
    14          query: |    
    15            sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m]))
    16  status:
    17    phase: Pending