From ac2c3786653c6222d078eac4b87bad968753c5c6 Mon Sep 17 00:00:00 2001 From: Viktor Farcic Date: Fri, 20 Mar 2020 00:09:55 +0100 Subject: [PATCH] Updated Flagger Signed-off-by: Viktor Farcic --- packs/C++/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/C++/charts/values.yaml | 2 +- packs/D/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/D/charts/values.yaml | 2 +- packs/appserver/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/appserver/charts/values.yaml | 2 +- packs/csharp/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/csharp/charts/values.yaml | 2 +- packs/cwp/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/cwp/charts/values.yaml | 2 +- packs/dropwizard/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/dropwizard/charts/values.yaml | 2 +- packs/go-mongodb/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/go-mongodb/charts/values.yaml | 2 +- packs/go/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/go/charts/values.yaml | 2 +- packs/gradle/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/gradle/charts/values.yaml | 2 +- .../charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/javascript-ui-nginx/charts/values.yaml | 2 +- packs/javascript/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/javascript/charts/values.yaml | 2 +- packs/liberty/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/liberty/charts/values.yaml | 2 +- .../maven-java11/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/maven-java11/charts/values.yaml | 2 +- .../charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/maven-node-ruby/charts/values.yaml | 2 +- .../charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/maven-quarkus/charts/values.yaml | 2 +- packs/maven/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/maven/charts/values.yaml | 2 +- packs/php/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/php/charts/values.yaml | 2 +- packs/python/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/python/charts/values.yaml | 2 +- packs/ruby/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/ruby/charts/values.yaml | 2 +- packs/rust/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/rust/charts/values.yaml | 2 +- packs/scala/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/scala/charts/values.yaml | 2 +- packs/swift/chart/templates/canary.yaml | 31 +++++++++++++++++-- packs/swift/chart/values.yaml | 2 +- packs/typescript/charts/templates/canary.yaml | 31 +++++++++++++++++-- packs/typescript/charts/values.yaml | 2 +- 46 files changed, 690 insertions(+), 69 deletions(-) diff --git a/packs/C++/charts/templates/canary.yaml b/packs/C++/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/C++/charts/templates/canary.yaml +++ b/packs/C++/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/C++/charts/values.yaml b/packs/C++/charts/values.yaml index f29382523..a84d7dad5 100644 --- a/packs/C++/charts/values.yaml +++ b/packs/C++/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/D/charts/templates/canary.yaml b/packs/D/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/D/charts/templates/canary.yaml +++ b/packs/D/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/D/charts/values.yaml b/packs/D/charts/values.yaml index f29382523..a84d7dad5 100644 --- a/packs/D/charts/values.yaml +++ b/packs/D/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/appserver/charts/templates/canary.yaml b/packs/appserver/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/appserver/charts/templates/canary.yaml +++ b/packs/appserver/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/appserver/charts/values.yaml b/packs/appserver/charts/values.yaml index 470d5a3c6..bf9fa5a58 100644 --- a/packs/appserver/charts/values.yaml +++ b/packs/appserver/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/csharp/charts/templates/canary.yaml b/packs/csharp/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/csharp/charts/templates/canary.yaml +++ b/packs/csharp/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/csharp/charts/values.yaml b/packs/csharp/charts/values.yaml index cb937a637..328804b6d 100644 --- a/packs/csharp/charts/values.yaml +++ b/packs/csharp/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/cwp/charts/templates/canary.yaml b/packs/cwp/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/cwp/charts/templates/canary.yaml +++ b/packs/cwp/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/cwp/charts/values.yaml b/packs/cwp/charts/values.yaml index 33b218bbf..3b7d8dbba 100644 --- a/packs/cwp/charts/values.yaml +++ b/packs/cwp/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/dropwizard/charts/templates/canary.yaml b/packs/dropwizard/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/dropwizard/charts/templates/canary.yaml +++ b/packs/dropwizard/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/dropwizard/charts/values.yaml b/packs/dropwizard/charts/values.yaml index 3aafd14e5..08aba6cea 100644 --- a/packs/dropwizard/charts/values.yaml +++ b/packs/dropwizard/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/go-mongodb/charts/templates/canary.yaml b/packs/go-mongodb/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/go-mongodb/charts/templates/canary.yaml +++ b/packs/go-mongodb/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/go-mongodb/charts/values.yaml b/packs/go-mongodb/charts/values.yaml index f9d677e1b..2c5278a13 100644 --- a/packs/go-mongodb/charts/values.yaml +++ b/packs/go-mongodb/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/go/charts/templates/canary.yaml b/packs/go/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/go/charts/templates/canary.yaml +++ b/packs/go/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/go/charts/values.yaml b/packs/go/charts/values.yaml index 916385f25..9c8ab332e 100644 --- a/packs/go/charts/values.yaml +++ b/packs/go/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/gradle/charts/templates/canary.yaml b/packs/gradle/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/gradle/charts/templates/canary.yaml +++ b/packs/gradle/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/gradle/charts/values.yaml b/packs/gradle/charts/values.yaml index b6fdc9aca..e8b156688 100644 --- a/packs/gradle/charts/values.yaml +++ b/packs/gradle/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/javascript-ui-nginx/charts/templates/canary.yaml b/packs/javascript-ui-nginx/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/javascript-ui-nginx/charts/templates/canary.yaml +++ b/packs/javascript-ui-nginx/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/javascript-ui-nginx/charts/values.yaml b/packs/javascript-ui-nginx/charts/values.yaml index 565e660c0..709df8fbd 100644 --- a/packs/javascript-ui-nginx/charts/values.yaml +++ b/packs/javascript-ui-nginx/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/javascript/charts/templates/canary.yaml b/packs/javascript/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/javascript/charts/templates/canary.yaml +++ b/packs/javascript/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/javascript/charts/values.yaml b/packs/javascript/charts/values.yaml index 7170f0fb6..c26d369f3 100644 --- a/packs/javascript/charts/values.yaml +++ b/packs/javascript/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/liberty/charts/templates/canary.yaml b/packs/liberty/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/liberty/charts/templates/canary.yaml +++ b/packs/liberty/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/liberty/charts/values.yaml b/packs/liberty/charts/values.yaml index 95f57c0d4..2bba0cbd9 100644 --- a/packs/liberty/charts/values.yaml +++ b/packs/liberty/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/maven-java11/charts/templates/canary.yaml b/packs/maven-java11/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/maven-java11/charts/templates/canary.yaml +++ b/packs/maven-java11/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/maven-java11/charts/values.yaml b/packs/maven-java11/charts/values.yaml index 470d5a3c6..bf9fa5a58 100644 --- a/packs/maven-java11/charts/values.yaml +++ b/packs/maven-java11/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/maven-node-ruby/charts/templates/canary.yaml b/packs/maven-node-ruby/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/maven-node-ruby/charts/templates/canary.yaml +++ b/packs/maven-node-ruby/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/maven-node-ruby/charts/values.yaml b/packs/maven-node-ruby/charts/values.yaml index 6ef48794f..2390ec7a6 100644 --- a/packs/maven-node-ruby/charts/values.yaml +++ b/packs/maven-node-ruby/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/maven-quarkus/charts/templates/canary.yaml b/packs/maven-quarkus/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/maven-quarkus/charts/templates/canary.yaml +++ b/packs/maven-quarkus/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/maven-quarkus/charts/values.yaml b/packs/maven-quarkus/charts/values.yaml index 6ef48794f..2390ec7a6 100644 --- a/packs/maven-quarkus/charts/values.yaml +++ b/packs/maven-quarkus/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/maven/charts/templates/canary.yaml b/packs/maven/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/maven/charts/templates/canary.yaml +++ b/packs/maven/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/maven/charts/values.yaml b/packs/maven/charts/values.yaml index 470d5a3c6..bf9fa5a58 100644 --- a/packs/maven/charts/values.yaml +++ b/packs/maven/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/php/charts/templates/canary.yaml b/packs/php/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/php/charts/templates/canary.yaml +++ b/packs/php/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/php/charts/values.yaml b/packs/php/charts/values.yaml index 16f16d244..c51ab596c 100644 --- a/packs/php/charts/values.yaml +++ b/packs/php/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/python/charts/templates/canary.yaml b/packs/python/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/python/charts/templates/canary.yaml +++ b/packs/python/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/python/charts/values.yaml b/packs/python/charts/values.yaml index 13d7a51b4..6c5fca524 100644 --- a/packs/python/charts/values.yaml +++ b/packs/python/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/ruby/charts/templates/canary.yaml b/packs/ruby/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/ruby/charts/templates/canary.yaml +++ b/packs/ruby/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/ruby/charts/values.yaml b/packs/ruby/charts/values.yaml index f18afe572..9c70ba304 100644 --- a/packs/ruby/charts/values.yaml +++ b/packs/ruby/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/rust/charts/templates/canary.yaml b/packs/rust/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/rust/charts/templates/canary.yaml +++ b/packs/rust/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/rust/charts/values.yaml b/packs/rust/charts/values.yaml index f29382523..a84d7dad5 100644 --- a/packs/rust/charts/values.yaml +++ b/packs/rust/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/scala/charts/templates/canary.yaml b/packs/scala/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/scala/charts/templates/canary.yaml +++ b/packs/scala/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/scala/charts/values.yaml b/packs/scala/charts/values.yaml index 1c2ea850c..72a0475bc 100644 --- a/packs/scala/charts/values.yaml +++ b/packs/scala/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/swift/chart/templates/canary.yaml b/packs/swift/chart/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/swift/chart/templates/canary.yaml +++ b/packs/swift/chart/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/swift/chart/values.yaml b/packs/swift/chart/values.yaml index 55ca4a812..26da3996b 100644 --- a/packs/swift/chart/values.yaml +++ b/packs/swift/chart/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60 diff --git a/packs/typescript/charts/templates/canary.yaml b/packs/typescript/charts/templates/canary.yaml index f33562c35..c65b13116 100644 --- a/packs/typescript/charts/templates/canary.yaml +++ b/packs/typescript/charts/templates/canary.yaml @@ -35,12 +35,39 @@ spec: - name: request-success-rate threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }} - - name: request-duration - threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} + - name: latency + templateRef: + name: latency + thresholdRange: + max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }} interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }} --- +apiVersion: flagger.app/v1beta1 +kind: MetricTemplate +metadata: + name: latency +spec: + provider: + type: prometheus + address: http://prometheus.istio-system:9090 + query: | + histogram_quantile( + 0.99, + sum( + rate( + istio_request_duration_milliseconds_bucket{ + reporter="destination", + destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}", + destination_workload=~"{{ "{{" }} target {{ "}}" }}" + }[{{ "{{" }} interval {{ "}}" }}] + ) + ) by (le) + ) + +--- + apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: diff --git a/packs/typescript/charts/values.yaml b/packs/typescript/charts/values.yaml index 7170f0fb6..c26d369f3 100644 --- a/packs/typescript/charts/values.yaml +++ b/packs/typescript/charts/values.yaml @@ -22,7 +22,7 @@ hpa: memoryTargetAverageUtilization: 80 # Canary deployments -# If enabled, Istio and Flagger need to be installed in the cluster +# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster canary: enabled: false progressDeadlineSeconds: 60