Use the builtin metrics in artifacts

This commit is contained in:
stefanprodan 2019-04-18 13:53:13 +03:00
parent 093348bc60
commit b60b912bf8
7 changed files with 13 additions and 13 deletions

View File

@ -118,13 +118,13 @@ spec:
stepWeight: 5 stepWeight: 5
# Istio Prometheus checks # Istio Prometheus checks
metrics: metrics:
# builtin Istio checks # builtin checks
- name: istio_requests_total - name: request-success-rate
# minimum req success rate (non 5xx responses) # minimum req success rate (non 5xx responses)
# percentage (0-100) # percentage (0-100)
threshold: 99 threshold: 99
interval: 1m interval: 1m
- name: istio_request_duration_seconds_bucket - name: request-duration
# maximum req duration P99 # maximum req duration P99
# milliseconds # milliseconds
threshold: 500 threshold: 500

View File

@ -43,12 +43,12 @@ spec:
cookie: cookie:
regex: "^(.*?;)?(type=insider)(;.*)?$" regex: "^(.*?;)?(type=insider)(;.*)?$"
metrics: metrics:
- name: istio_requests_total - name: request-success-rate
# minimum req success rate (non 5xx responses) # minimum req success rate (non 5xx responses)
# percentage (0-100) # percentage (0-100)
threshold: 99 threshold: 99
interval: 1m interval: 1m
- name: istio_request_duration_seconds_bucket - name: request-duration
# maximum req duration P99 # maximum req duration P99
# milliseconds # milliseconds
threshold: 500 threshold: 500

View File

@ -36,7 +36,7 @@ spec:
stepWeight: 5 stepWeight: 5
# App Mesh Prometheus checks # App Mesh Prometheus checks
metrics: metrics:
- name: envoy_cluster_upstream_rq - name: request-success-rate
# minimum req success rate (non 5xx responses) # minimum req success rate (non 5xx responses)
# percentage (0-100) # percentage (0-100)
threshold: 99 threshold: 99

View File

@ -56,12 +56,12 @@ spec:
stepWeight: 5 stepWeight: 5
# Istio Prometheus checks # Istio Prometheus checks
metrics: metrics:
- name: istio_requests_total - name: request-success-rate
# minimum req success rate (non 5xx responses) # minimum req success rate (non 5xx responses)
# percentage (0-100) # percentage (0-100)
threshold: 99 threshold: 99
interval: 1m interval: 1m
- name: istio_request_duration_seconds_bucket - name: request-duration
# maximum req duration P99 # maximum req duration P99
# milliseconds # milliseconds
threshold: 500 threshold: 500

View File

@ -40,12 +40,12 @@ spec:
stepWeight: 5 stepWeight: 5
# Istio Prometheus checks # Istio Prometheus checks
metrics: metrics:
- name: istio_requests_total - name: request-success-rate
# minimum req success rate (non 5xx responses) # minimum req success rate (non 5xx responses)
# percentage (0-100) # percentage (0-100)
threshold: 99 threshold: 99
interval: 1m interval: 1m
- name: istio_request_duration_seconds_bucket - name: request-duration
# maximum req duration P99 # maximum req duration P99
# milliseconds # milliseconds
threshold: 500 threshold: 500

View File

@ -1,5 +1,5 @@
apiVersion: v1 apiVersion: v1
version: 2.0.0 version: 2.0.1
appVersion: 1.4.0 appVersion: 1.4.0
name: podinfo name: podinfo
engine: gotpl engine: gotpl

View File

@ -32,10 +32,10 @@ spec:
maxWeight: {{ .Values.canary.analysis.maxWeight }} maxWeight: {{ .Values.canary.analysis.maxWeight }}
stepWeight: {{ .Values.canary.analysis.stepWeight }} stepWeight: {{ .Values.canary.analysis.stepWeight }}
metrics: metrics:
- name: istio_requests_total - name: request-success-rate
threshold: {{ .Values.canary.thresholds.successRate }} threshold: {{ .Values.canary.thresholds.successRate }}
interval: 1m interval: 1m
- name: istio_request_duration_seconds_bucket - name: request-duration
threshold: {{ .Values.canary.thresholds.latency }} threshold: {{ .Values.canary.thresholds.latency }}
interval: 1m interval: 1m
{{- if .Values.canary.loadtest.enabled }} {{- if .Values.canary.loadtest.enabled }}